ActionList.Leading/TrailingVisual
is invisible to screen readers
#4908
Labels
ActionList.Leading/TrailingVisual
is invisible to screen readers
#4908
ActionList
renders items as alistitem
with abutton
child. Thatbutton
is labelled (viaaria-labelledby
) by the main content of the item.This means that leading & trailing visuals are totally hidden from screen readers. That's fine when the visuals are purely decorative, but this is not always the case. A visual (particularly a trailing one) can indicate important information, such as:
KeybindingHint
component #4750 (comment))Hiding this information from screen readers provides users of these tools with a limited experience compared to sighted users.
Possible solutions
aria-labelledby
attribute so they are included in the label. If they are unlabeled icons this should have no effect.aria-labelledby
attribute entirely so the button label is built from its contents as normal, automatically accounting for any text in the visualsRisks
There is a risk here that consumers will have worked around the suppression by adding the context to the main content as visually-hidden text. Shipping a fix for this issue might then cause the context to be read twice.
The text was updated successfully, but these errors were encountered: