Skip to content

SC 2.5.3 Label in name and abbreviated text in dropdown list #4023

@sarasuri

Description

@sarasuri

Hello,

In a dropdown list where the visible labels use two-letter abbreviations for provinces, the "aria-label" attribute on each element provides the full name of the province. For example, the visible label might be "AB," and the aria-label is "Alberta."
The issue is the accessible name provided via the "aria-label" attribute doesn't contain the the visible text for each option.
<label for="pro">Province</label> <select name="province" autocomplete="address-level1" class="form-control arrow " id="pro"><option value="0" aria-label="Alberta">AB</option><option value="1" aria-label="British Columbia">BC</option><option value="2" aria-label="Manitoba">MB</option></select>

Would this be considered as a failure for the SC 2.5.3? Any thoughts or feedback would be appreciated.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions