Content within the notification banner uses the default user-agent text colour #2037
Labels
accessibility
🐛 bug
Something isn't working the way it should (including incorrect wording in documentation)
notification banner
Milestone
Description of the issue
The notification banner content currently uses the user agent default text colour.
This means that for users who have not changed their user agent default text colour, the text will be true black (
#000000
) rather than the ‘GOV.UK’ black we specify in the colour palette (#0b0c0c
).It also means that if a user has changed their default text colour, but has not chosen to override colours, depending on the user’s prefered colour scheme the text may have low contrast or be invisible.
As I understand it, this is as a ‘failure of Success Criterion 1.4.3, 1.4.6 and 1.4.8 due to specifying foreground colors without specifying background colors or vice versa’.
Steps to reproduce the issue
For example, my Firefox instance is configured to use white text on a blue background:
Actual vs expected behaviour
The notification banner is therefore white-on-white, and thus invisible:
Rather than:
The text was updated successfully, but these errors were encountered: