digital-land / submit

0 stars 1 forks source link

Consistent way of displaying numerical data/dates in table component #679

Open rosado opened 5 days ago

rosado commented 5 days ago

What

Numerical and dates columns in tables should have govuk-table__cell--numeric class on them.

Why

govuk standard.

Background

As pointed out by @alextea in a comment

Can we any numerical or date columns use the govuk-table__cell--numeric class (George implemented this on the dataset table view)

We should put the appropriate class on numerical data and dates in our table component. Right now the use is inconsistent (e.g. putting the class on a cell vs. a column) and sometimes added to cells with non-number type (example, see the 'reference' column which contains data that looks like a number, but also alphanumerical strings).