Add top level options (for ex keyClasses, valueClasses and actionsClasses) to the Summary List's macro to allow setting extra classes on the key, value and actions of all rows.
Why
Classes can currently be set through the classes property of key/value/actions object in each of the rows. This is slightly cumbersome to implement when needing to adjust the width of a column (setting one of our width overrides, for example).
The current implementation would allow setting it only on the first row, thanks to the use of display:table-cell. However, this would be brittle should we decide to update how the component is laid out.
Who needs to work on this
Developers
Who needs to review this
Developers
Done when
[ ] Options have been added to the macro
[ ] Tests have been added to check they work as intended
[ ] Options are documented in the component's YAML file
What
Add top level options (for ex
keyClasses
,valueClasses
andactionsClasses
) to the Summary List's macro to allow setting extra classes on thekey
,value
andactions
of all rows.Why
Classes can currently be set through the
classes
property ofkey
/value
/actions
object in each of therows
. This is slightly cumbersome to implement when needing to adjust the width of a column (setting one of our width overrides, for example).The current implementation would allow setting it only on the first
row
, thanks to the use ofdisplay:table-cell
. However, this would be brittle should we decide to update how the component is laid out.Who needs to work on this
Developers
Who needs to review this
Developers
Done when