govuk-frontend
govuk-frontend copied to clipboard
Table HTML includes multiple classes that don't do anything
What
The template for the Table component includes a number of classes which are not used for styling.
-
govuk-table__head
on the<thead>
-
govuk-table__body
on the<tbody>
-
govuk-table__row
on each<tr>
We should consider removing the classes as they don't seem to have any purpose.
Why
The HTML for our components shouldn't include things that aren't needed and don't do anything.
Who needs to work on this
Developers, tech write
Who needs to review this
Developers
Done when
- [ ] Unused classes are not outputted by the Template component's Nunjucks macro