Open
Bug 1982112
Opened 8 months ago
Updated 4 months ago
[GenAI Chat Sidebar] [HCM] Close button is styled as a mix of button and link that is not expected on forced-colors mode
Categories
(Core :: Machine Learning: Frontend, defect)
Tracking
()
NEW
| Accessibility Severity | s3 |
People
(Reporter: ayeddi, Unassigned)
References
(Blocks 3 open bugs)
Details
(Keywords: access, Whiteboard: [genai])
Attachments
(1 file)
Steps to reproduce (STR):
- Activate a High Contrast Mode theme on Windows (Settings > Accessibility > Contrast themes > select one, i.e.
Night Skyon Win11 and apply). - Open Firefox Nightly.
- Open Settings (
about:preferences) and checkShow sidebaroption. - Activate the
AI Chatbotvia the sidebar panel, or press^+Xkey combination, or via ribbonView>Sidebar>AI Chatbot. - On the provider selection screen, navigate through the radio buttons for AI providers and the disabled
Continuebutton, until you reach theClosebutton at the end of this panel. - Using the keyboard or mouse, interact with the
Closebutton to observe its default, hover, focused, and active (pressed) states.
Expected results:
- The
Closebutton should be styled as a standard button, followingforced-colors(HCM) mode expectations (by usingButtonFacefor background andButtonTextfor both the label text and 1px solid border. - The control should provide clear and distinct visual feedback for all states:hover, and active (pressed), matching the semantic button styling pattern for HCM, with appropriate focus indication using
CanvasTextfor the focus outline. - The button should not visually appear as a mix of a link and a button, and its interactive role should be clear for all users, including those relying on HCM.
Actual results:
- The
Closebutton uses an HTML button element, but its styling is overridden by aboutwelcome.css so that it appears as a mix of a button and a link. - The expected HCM (
forced-colors) styling for a button is partially overridden, making the control visually ambiguous and inconsistent with other buttons or links in the UI. - The button does not provide clear visual feedback for hover and active (pressed) states.
- User impact: Users relying on High Contrast Mode (i.e. users with low vision, colorblindness, cognitive disabilities, and others) may be confused about the control’s purpose or interactivity, may avoid or miss it entirely due to its ambiguous appearance, or may not know when the control is being hovered or activated.
Recommendation:
- Update the styling of the
Closebutton on the onboarding screen so it uses only standard button styles in all states in HCM, ensuring the correct semantic appearance and experience forforced-colorsmode:- Use
ButtonFacefor the background andButtonTextfor the label and border in the default state. - For the hover state, use
SelectedItemfor the background andSelectedItemTextfor the border and label text. - For the active state, use the hover color combination, but with
ButtonTextfor the border alone.
- Use
- Ensure all states (default, hover, and active) have clear styling consistent with the HCM secondary button pattern (Figma reference, requires SSO to access).
- Update any CSS overrides from
aboutwelcome.cssthat style the button as a link or otherwise conflict with the expected HCM button patterns, at least whenforced-colorsmedia query is triggered. - Reference the HCM media queries for forced-colors mode for further implementation guidance and color combinations expected.
Updated•8 months ago
|
Updated•8 months ago
|
Updated•4 months ago
|
Component: Machine Learning: General → Machine Learning: Frontend
You need to log in
before you can comment on or make changes to this bug.
Description
•