Closed Bug 2017166 Opened 9 months ago Closed 6 months ago

The Ask Sidebar button Open/Closed state is not read out loud by Screen readers

Categories

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

Desktop
Unspecified
defect

Tracking

()

VERIFIED FIXED
152 Branch
Accessibility Severity s3
Tracking Status
firefox-esr140 --- disabled
firefox147 --- disabled
firefox148 --- disabled
firefox149 --- disabled
firefox150 --- wontfix
firefox151 --- verified
firefox152 --- verified

People

(Reporter: rdoghi, Assigned: chloezhou, NeedInfo)

References

(Blocks 1 open bug)

Details

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

Attachments

(1 file, 2 external files, 2 obsolete files)

Attached video AskState.mp4 —

Found in

  • Nightly 149.0a1 (2026-02-16)

Affected versions

  • Nightly 149.0a1 (2026-02-16)

Affected platforms

  • all

Preconditions
Have Screen Readers enabled.

Steps to reproduce

  1. Open a New smart window.
  2. Reach the Ask button from the Toolbar and Open the Sidebar.
  3. Close the Assistant Sidebar.

Expected result

  • The Ask Sidebar state should be read out loud by the screen readers.

Actual result

  • Only the 3 of 4 status is read out loud by the screen readers.
    The Ask Sidebar Open or Closed states are not being read by Screen readers.

Regression range
N/A

S3 because there is a workaround: the user could explore to figure out whether the side bar is open or closed. This is a borderline s2 though because this indicator is visible to sighted users but inaccessible to users of assistive technology such as screen readers.

Accessibility Severity: --- → s3

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]

The Ask toolbar button had no accessible state announcement when toggled. Screen readers would only read the button's label without indicating whether the sidebar had opened or closed.

Fix by replacing the single smartwindow-ask-button FTL entry with two state-specific entries — smartwindow-ask-button-open and smartwindow-ask-button-closed — each carrying a distinct aria-label ("Ask sidebar opened" / "Ask sidebar closed"). _updateAskButtonChecked now switches data-l10n-id on toggle, causing the accessible name to change and triggering a VoiceOver announcement on the focused element.

Assignee: nobody → chzhou
Status: NEW → ASSIGNED
Pushed by chzhou@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/112e19f0f921 https://hg.mozilla.org/integration/autoland/rev/2798a0b18782 announce Ask sidebar open/close state to screen readers r=jlewis,fluent-reviewers,ai-frontend-reviewers,bolsson,desktop-theme-reviewers,dao,morgan
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch

Verified as fixed in our latest Nightly 152.0a1 (2026-05-08)

QA Whiteboard: [qa-found-in-c149][QA-4747][S2] → [qa-found-in-c149][QA-4747][S2][qa-ver-needed-c152/b151]
QA Contact: rdoghi

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)

The Ask toolbar button had both type="checkbox" and aria-expanded, causing VoiceOver to only announce "selected" while the expanded/collapsed state was never spoken.

Fix by removing type="checkbox" and the checked state logic, leaving aria-expanded as the sole state signal — aligning with the W3C disclosure button pattern. Updated CSS selectors from [checked] to [aria-expanded="true"]. Tests updated to assert aria-expanded.

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

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

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: The Ask Sidebar button Open/Closed state is not read out loud by Screen readers
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: css change only
  • String changes made/needed?: no
  • Is Android affected?: no
Attachment #9586120 - Attachment description: Bug 2017166 - announce Ask sidebar open/close state to screen readers → Bug 2017166 - announce Ask sidebar open/close state to screen readers r=jlewis,fluent-reviewers,ai-frontend-reviewers,bolsson,desktop-theme-reviewers,dao,morgan
Attachment #9586120 - Attachment is obsolete: true
Attachment #9586120 - Flags: approval-mozilla-release?

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: The Ask Sidebar button Open/Closed state is not read out loud by Screen readers. and the button is not focusable.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: css change only.
  • String changes made/needed?: no
  • Is Android affected?: no
Attachment #9586134 - Flags: approval-mozilla-release?

The Ask toolbar button had both type="checkbox" and aria-expanded, causing VoiceOver to only announce "selected" while the expanded/collapsed state was never spoken.

Fix by removing type="checkbox" and the checked state logic, leaving aria-expanded as the sole state signal — aligning with the W3C disclosure button pattern. Updated CSS selectors from [checked] to [aria-expanded="true"]. Tests updated to assert aria-expanded.

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

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: The Ask Sidebar button Open/Closed state is not read out loud by Screen readers. and the button is not focusable.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: css change only.
  • String changes made/needed?: no
  • Is Android affected?: no
Attachment #9586136 - Flags: approval-mozilla-release?

The Ask toolbar button had both type="checkbox" and aria-expanded, causing VoiceOver to only announce "selected" while the expanded/collapsed state was never spoken.

Fix by removing type="checkbox" and the checked state logic, leaving aria-expanded as the sole state signal — aligning with the W3C disclosure button pattern. Updated CSS selectors from [checked] to [aria-expanded="true"]. Tests updated to assert aria-expanded.

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

Attachment #9586136 - Attachment is obsolete: true
Attachment #9586136 - Flags: approval-mozilla-release?
Blocks: 2034586
Flags: needinfo?(chzhou)
Attachment #9586134 - Flags: approval-mozilla-release? → approval-mozilla-release+

Verified as fixed in our latest Release 151.0.2

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-found-in-c149][QA-4747][S2][qa-ver-needed-c152/b151] → [qa-found-in-c149][QA-4747][S2][qa-ver-done-c152/b151][uplift]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: