govuk-frontend icon indicating copy to clipboard operation
govuk-frontend copied to clipboard

Table HTML includes multiple classes that don't do anything

Open 36degrees opened this issue 1 year ago • 1 comments

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

36degrees avatar Jul 26 '22 16:07 36degrees