mozilla / mozilla/protocol

Component Change Request: use AAA contrast standards on Error notification bar

Open
#848 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Design 🎨
Dominant language
SCSS
Stars
298
Forks
83
Avg merge
16h 48m
Merged PRs (30d)
1

Description

Please describe the change you wish to see

Aim for AAA WCAG color contrast standards on Errors notification bars

Please describe why these changes need to be made

The current Error notification styles pass normal AA contrast checks but fail AAA normal text check
current-contrast

In the case of Error notifications, it feels like we should go beyond normal requirements and make the text as easy to read as possible. Errors are already frustrating and it would compound user frustration to struggle to read the error description.
error

Please provide any designs or prototypes of the proposed changes

Enforcing large/bolded text might be the most effective solution.

Please describe where this component is currently in use

Screenshot above is from Newsletter error (locally forcing errors from the views.py file: http://localhost:8000/en-US/newsletter/confirm/thanks/?error=2)

Please describe what this component should do in the following conditions
  • When set in front of a dark background
  • When set in front of a light background
  • When viewed in a mobile/responsive viewport

I don't think it needs any changes to responsive viewport behaviour or dark/light theme

Is the development of this component a blocking dependency for other work? Please explain if so

Not blocking

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the error variant of the notification-bar component documented at the linked Protocol page, then trace its SCSS implementation and the Newsletter error example described in the issue. Check the existing colors and typography against WCAG AAA normal-text contrast, and verify the result in light, dark, and responsive contexts. Done means the error notification meets the requested contrast standard without changing responsive or theme behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
scss
Domain
accessibility, design, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.