Closed Bug 2008119 Opened 5 months ago Closed 1 month ago

Button accessible name does not convey its function: missing topic context (Settings dialog > Topics dialog > buttons Following/Unfollow/Blocked/Unblock)

Categories

(Firefox :: New Tab Page, defect)

Firefox 148
defect

Tracking

()

RESOLVED FIXED
152 Branch
Accessibility Severity s3
Tracking Status
firefox149 --- wontfix
firefox150 --- wontfix
firefox151 --- wontfix
firefox152 --- fixed

People

(Reporter: john.northup, Assigned: koladeelizabeth01, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: access, good-first-bug, Whiteboard: [outreachy-sidebar-2026])

Attachments

(2 files, 2 obsolete files)

Steps to Reproduce

Open DevTools. Activate the Customize button. Within the Settings dialog, activate the Manage topics button. The Topics dialog opens. Using the Accessibility Inspector, inspect the buttons adjacent to the topic names.

Expected Behavior

name conveys button function completely.

Actual Behavior

name conveys button text, but not the related topic.

User Impact

Multiple Following and Blocked buttons have identical accessible names and are not programmatically associated with the topics they act upon. As a result, AT users cannot easily determine which topic each button refers to.

WCAG 2.2 References

Recommendations

The segments of text to the left of the buttons are <label> elements whose for attributes match the id attributes of the corresponding <moz-button> elements that contain the buttons—however, the labels are not announced, likely because <moz-button> has no semantic role and is not labelable. Remove the <label> structure and instead use aria-label to give each <button> a distinct, descriptive accessible name (e.g., aria-label="unfollow movies").

Testing Environment

Any

Assistive Technology Used

Any

Code Pointers

<moz-button type="default" index="1" section="arts" id="follow-topic-arts" data-l10n-attrs="label,tooltiptext" size="default" iconposition="start" menuid="">
  <link rel="stylesheet" href="chrome://global/content/elements/moz-button.css">
  <button id="main-button">
    <span part="button" class=" button-background " type="default" size="default">
      <label is="moz-label" part="moz-button-label">
        <slot></slot>
      </label>
    </span>
  </button>
  <link rel="stylesheet" href="chrome://global/content/elements/moz-label.css">
  <span class="section-button-follow-text" data-l10n-id="newtab-section-follow-button">Follow</span>
  <span class="section-button-following-text" data-l10n-id="newtab-section-following-button">Following</span>
  <span class="section-button-unfollow-text" data-l10n-id="newtab-section-unfollow-button">Unfollow</span>
</moz-button>

Further Reference

Blocks: 2004739
Keywords: access

Managed to reproduce this issue on macOs 13 using Nightly 149.0a1. I will set this request as "NEW" to allow the engineering team to consider whether they will implement the fix or not, even thought to me it seems to have the same root cause as bug 2008117.

Status: UNCONFIRMED → NEW
Ever confirmed: true

The context of controls is missing.
Alternative resolution may be using aria-labelledby on the (shadow DOM) <button> element that would refer to both the id of its <label> and the text element that includes the topic's name.

Thus, it's expected to get aria-labelledby="buttonID headingID" or, since it involves shadow DOM and these id references may not be calculated, an aria-label="button-label-string heading-text-string" could be used as a backup.

Accessibility Severity: --- → s3
Summary: Button accessible name does not convey its function (Settings dialog > Topics dialog > buttons) → Button accessible name does not convey its function: missing topic context (Settings dialog > Topics dialog > buttons Following/Unfollow/Blocked/Unblock)
See Also: → 2008123
See Also: → 2008120

Assigning the Severity value to align with the Accessibility severity, per discussions with :thecount and :marco

Severity: -- → S3
Keywords: good-first-bug

can this be reassigned to me?

Flags: needinfo?(kcochrane)

Sure

Assignee: nobody → koladeelizabeth01
Mentor: kcochrane
Status: NEW → ASSIGNED
Flags: needinfo?(kcochrane)
Whiteboard: [outreachy-sidebar-2026]
See Also: → 2030391
Attachment #9567580 - Attachment description: Bug 2008119 - Button access name r=kcochrane → Bug 2008119 - Add descriptive accessible name to new tab page follow/unfollow and block/unblock topic buttons r=kcochrane
Attachment #9568142 - Attachment is obsolete: true
Attachment #9567580 - Attachment description: Bug 2008119 - Add descriptive accessible name to new tab page follow/unfollow and block/unblock topic buttons r=kcochrane → Bug 2008119 - Edited descriptive accessible name to new tab page follow/unfollow and block/unblock topic buttons r=kcochrane
Attachment #9568926 - Attachment is obsolete: true

Hi, why did you give up on me working on this bug?
Canyou assign another to me ? the one where I would not be assigned as a reviewer?

Flags: needinfo?(kcochrane)

You are still assigned to this bug.. I requested feedback: https://phabricator.services.mozilla.com/D292753, so you'll need to make further changes.

Flags: needinfo?(kcochrane)
Attachment #9567580 - Attachment description: Bug 2008119 - Edited descriptive accessible name to new tab page follow/unfollow and block/unblock topic buttons r=kcochrane → Bug 2008119 - Reverted descriptive accessible name to new tab page follow/unfollow and block/unblock topic buttons r=kcochrane
Attachment #9567580 - Attachment description: Bug 2008119 - Reverted descriptive accessible name to new tab page follow/unfollow and block/unblock topic buttons r=kcochrane → Bug 2008119 - Add descriptive accessible name to new tab page follow/unfollow and block/unblock topic buttons r=kcochrane
Pushed by kcochrane@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a239d783e522 https://hg.mozilla.org/integration/autoland/rev/a9322127e631 Add descriptive accessible name to new tab page follow/unfollow and block/unblock topic buttons r=home-newtab-reviewers,fluent-reviewers,bolsson,reemhamz
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: