fune/toolkit/components/aboutconfig
Anna Yeddi 2cf6f97667 Bug 1882380 - Update AccessibilityUtils to ensure clicking on a label text content for a form field is not failing a11y_checks. r=Jamie
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](https://searchfox.org/mozilla-central/rev/9cd4ea81e27db6b767f1d9bbbcf47da238dd64fa/toolkit/components/aboutconfig/test/browser/browser_edit.js#418-424):
```
<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`

Differential Revision: https://phabricator.services.mozilla.com/D205112
2024-03-25 15:25:37 +00:00
..
content Bug 1864896: Autofix unused function arguments (toolkit). r=mconley,translations-reviewers,omc-reviewers,aminomancer 2024-03-19 14:59:21 +00:00
test/browser Bug 1882380 - Update AccessibilityUtils to ensure clicking on a label text content for a form field is not failing a11y_checks. r=Jamie 2024-03-25 15:25:37 +00:00
jar.mn
moz.build