Daily Accessibility ReviewIcon-only status formatters lack text alternatives (Checked, IconIsDefault) #17822
Unanswered
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Two table-cell formatter components use icon elements to convey boolean state (yes/no, enabled/disabled) without providing any text alternative. Screen readers skip or misread these cells.
formatter/IconIsDefault.vueThe
icon-checkmarkandicon-xicons carry semantic meaning ("yes" / "no") but are exposed to assistive technology with no text alternative and noaria-label.formatter/Checked.vueAgain, the checkmark icon has no accessible text. The em-dash fallback (—) will be read literally as "dash" by screen readers rather than conveying a "no" or "false" state.
WCAG 2.2 references
Recommended fix
Hide the decorative icon from assistive technology and add a visually-hidden text alternative:
formatter/IconIsDefault.vueformatter/Checked.vueAlternatively a visually-hidden
<span class="sr-only">text could be used.Beta Was this translation helpful? Give feedback.
All reactions