Closed Bug 2017149 Opened 2 months ago Closed 5 days ago

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

Categories

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

Desktop
Windows
defect

Tracking

()

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

People

(Reporter: rdoghi, Assigned: chloezhou, NeedInfo)

References

(Blocks 1 open bug)

Details

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

Attachments

(3 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: 5 days 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)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: