delegatesFocus breaks aria-describedby in fast-components #5215
Labels
area:fast-foundation
Pertains to fast-foundation
bug
A bug
closed:obsolete
No longer valid
status:needs-investigation
Needs additional investigation
🐛 Bug Report
When the
delegatesFocus
shadow option is set totrue
on a component that passes thearia-describedby
to a shadow element, when the component receives focus, certain audible assistive technologies will not read corresponding descriptor element.Google screen reader will read the descriptor.
Potentially effected components:
fast-anchor
fast-avatar
fast-breadcrumb-item
fast-button
fast-combobox
fast-number-field
fast-text-field
fast-toolbar
💻 Repro or Code Sample
These can be replicated by running
fast-components
locally and comparing the behavior offast-button
whenshadowOptions: { delegatesFocus }
is set to true or false when read by Microsoft Narrator or Apple VoiceOver.🤔 Expected Behavior
When the
fast-button
receives focus, it should read the element with the corresponding ID's inner text (i.e. "Helpful information") when focus is delegated.😯 Current Behavior
Apple VoiceOver does not read aloud the paragraph element's text "Helpful information" when focus is delegated. Once
delegatesFocus
is set tofalse
it will be read by the screen reader.💁 Possible Solution
🔦 Context
🌍 Your Environment
The text was updated successfully, but these errors were encountered: