Closed Bug 1882380 Opened 2 months ago Closed 28 days ago

Update AccessibilityUtils to ensure clicking on a label text content for a form field is not failing a11y_checks

Categories

(Core :: Disability Access APIs, task)

task

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: ayeddi, Assigned: ayeddi)

References

(Blocks 1 open bug)

Details

(Keywords: access)

Attachments

(1 file)

Some tests are reporting failing a11y_checks while the click is sent to a text leaf within a label of a radio button with an appropriate markup, for example when span is clicked in this case:

<label>
    <input type="radio" name="type" value="Boolean">
    <span data-l10n-id="about-config-pref-add-type-boolean">
        Boolean
    </span>
</label>

Some tests are reporting failing a11y_checks while the click is sent to a text leaf within a label of a radio button with an appropriate markup, for example when span is clicked in this case:

<label>
    <input type="radio" name="type" value="Boolean">
    <span data-l10n-id="about-config-pref-add-type-boolean">
        Boolean
    </span>
</label>

We need to add a check in the findInteractiveAccessible() method to allow for a label accessible to return its related form control to proceed with the a11y-checks suite, incl. the assertLabeled check too.

Test that is affected by this change: toolkit/components/aboutconfig/test/browser/browser_edit.js

Assignee: nobody → ayeddi
Status: NEW → ASSIGNED
Pushed by ayeddi@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/00b8105467ed
Update AccessibilityUtils to ensure clicking on a label text content for a form field is not failing a11y_checks. r=Jamie
Status: ASSIGNED → RESOLVED
Closed: 28 days ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: