Closed Bug 2017149 Opened 6 months ago Closed 4 months ago

The "Ask" button is not properly displayed with High contrast

Categories

(Core :: Machine Learning: Frontend, defect, P1)

Desktop
Windows
defect

Tracking

()

VERIFIED FIXED
151 Branch
Accessibility Severity s2
Tracking Status
firefox-esr140 --- disabled
firefox147 --- disabled
firefox148 --- disabled
firefox149 --- disabled
firefox150 --- wontfix
firefox151 --- verified

People

(Reporter: rdoghi, Assigned: chloezhou)

References

(Blocks 1 open bug)

Details

(Keywords: access, Whiteboard: [genai][chat][qa])

Attachments

(3 files, 2 obsolete files)

Attached video ASK.mp4

Found in

  • Nightly 149.0a1 (2026-02-16)

Affected versions

  • Nightly 149.0a1 (2026-02-16)

Affected platforms

  • windows

Preconditions
Have High Contrast enabled.

Steps to reproduce

  1. Open a Smart window.
  2. Reach any website and Open the Chat Sidebar.

Expected result

  • The Ask button should be properly displayed with High contrast.

Actual result

  • The Ask button is barely readable with High Contrast enabled.
    Please also note that the Ask button does not have a Clicked state with High contrast enabled.

Regression range
N/A

S2 because this is barely readable with this theme and possibly entirely unreadable with others.

Accessibility Severity: --- → s2

The severity field is not set for this bug.
:Mardak, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(edilee)
Whiteboard: [genai][chat] → [genai][chat][qa]

Designs for HCM available in this figma file.

Attached image Ask-ChatToggle- HCM.png

Add prefers-contrast styles for #smartwindow-ask-button-inner to improve accessibility in high contrast mode. Removes the gradient background and individual child outline borders, replacing them with a single outline on the wrapper and custom HCM colors for default, hover, and active states in
both closed and opened (sidebar-is-open) configurations.

Also makes the button keyboard-focusable via -moz-user-focus: normal and adds a double-ring focus indicator.

Assignee: nobody → chzhou
Status: NEW → ASSIGNED
Pushed by chzhou@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f01d7d90c4ef https://hg.mozilla.org/integration/autoland/rev/cc3ca127d136 Add high contrast mode styles and keyboard focus for the smart window Ask button r=desktop-theme-reviewers,accessibility-frontend-reviewers,emilio,morgan
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

The patch landed in nightly and beta is affected.
:chloezhou, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(chzhou)

Verified as fixed in our latest Nightly 151.0a1 (2026-04-15)

QA Whiteboard: [qa-found-in-c149][QA-4747][S3] → [qa-found-in-c149][QA-4747][S3][qa-ver-needed-c151/b150]
QA Contact: rdoghi
Flags: needinfo?(chzhou)
Severity: -- → S2
Flags: needinfo?(edilee)

Updating the main status flag.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-found-in-c149][QA-4747][S3][qa-ver-needed-c151/b150] → [qa-found-in-c149][QA-4747][S3][qa-ver-done-c151/b150]

Add high contrast mode support for the toolbar Ask button.

Override existing --smartwindow-ask-btn-* variables at :root inside nested media queries, following the same pattern as other :root variable overrides in the file.

@media (prefers-contrast) removes gradient backgrounds to prevent border bleed-through and sets all border variables to currentColor for visible borders — covering both macOS "Increase Contrast" and Windows HCM users.

@media (forced-colors) applies full system color overrides for Windows HCM users using design tokens with distinct styles for default, hover, and active states in both closed and opened modes.

Removes individual icon/text outlines in @media (prefers-contrast) and adds a focus indicator with outline-offset in forced-colors only. Makes the button keyboard-focusable via -moz-user-focus: normal.

Original Revision: https://phabricator.services.mozilla.com/D291014

Attachment #9586132 - Flags: approval-mozilla-release?

Add high contrast mode support for the toolbar Ask button.

Override existing --smartwindow-ask-btn-* variables at :root inside nested media queries, following the same pattern as other :root variable overrides in the file.

@media (prefers-contrast) removes gradient backgrounds to prevent border bleed-through and sets all border variables to currentColor for visible borders — covering both macOS "Increase Contrast" and Windows HCM users.

@media (forced-colors) applies full system color overrides for Windows HCM users using design tokens with distinct styles for default, hover, and active states in both closed and opened modes.

Removes individual icon/text outlines in @media (prefers-contrast) and adds a focus indicator with outline-offset in forced-colors only. Makes the button keyboard-focusable via -moz-user-focus: normal.

Original Revision: https://phabricator.services.mozilla.com/D291014

Attachment #9586135 - Flags: approval-mozilla-release?
Attachment #9586135 - Attachment is obsolete: true
Attachment #9586135 - Flags: approval-mozilla-release?
Blocks: 2034586
Attachment #9586132 - Attachment is obsolete: true
Attachment #9586132 - Flags: approval-mozilla-release?

the release patches were against 150 and this originally landed in 151, so no need to uplift there

No longer blocks: 2034586
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: