hmrc / hmrc-frontend

Apache License 2.0
9 stars 18 forks source link

Summary list long #304

Closed timsb closed 1 year ago

timsb commented 1 year ago

This PR adds a Summary list CSS class modifier which makes the key longer. It is mainly for the File upload pattern however could be used in various other cases as well, which is why I've kept the class name generic. It's using flexbox to expand the key section which has some pros and cons: It does work well in IE10 & IE11 and allows the key to be as long as it can be without squashing the other sections; It does mean however that each row can have different sized 'cells' if the content within each is quite different. As the Summary list is owned by GOV.UK rather than being an hmrc-frontend component I've added a YAML file and an example file which will show the different versions.