You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding responsive to tables we get validation errors:
"The role attribute must not be used on a td element which has a table ancestor with no role attribute, or with a role attribute whose value is table, grid, or treegrid."
Activity
colinrotherham commentedon Sep 29, 2025
The warning can safely be ignored
Responsive tables unset the default table roles using CSS so we must set them again using HTML
roleattributesNote: Some table
roleattributes were missed but have been fixed in:If you'd like to track improvements to responsive tables there's an issue on NHS.UK frontend too: