You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if you add the copyable or viewable properties to an input the button that Flux generates is not accessible to screenreaders. It's just an empty button with an icon in it which screenreaders can't read. I've worked around this by publishing the input component and manually adding some sr-only text within the buttons for screenreaders to reference, but ideally Flux would be able to handle this and be fully accessible without requiring me to publish components and edit them! The clearable action has an aria-label on it, but the other two don't have any kind of aria labels or sr-only text.
You can recreate this by just including an input on your page with the copyable or viewable attribute.
e.g. flux/input/copyable.blade.php
My screenreader sees this as just "button" which gives no clues as to what this action actually does if I choose to interact with it.
I expect the action buttons to have text in them (not just an icon) so it can pass accessibility tests and the buttons can be used by a screenreader.
e.g. flux/input/copyable.blade.php
I manually published and adjusted this to add sr-only text which allows this button to have a label for screenreaders so it reads something like "Copy to clipboard, button" instead which makes a lot more sense.
Flux version
1.0.23
Livewire version
3.5.12
What is the problem?
Currently if you add the
copyable
orviewable
properties to an input the button that Flux generates is not accessible to screenreaders. It's just an empty button with an icon in it which screenreaders can't read. I've worked around this by publishing the input component and manually adding some sr-only text within the buttons for screenreaders to reference, but ideally Flux would be able to handle this and be fully accessible without requiring me to publish components and edit them! The clearable action has anaria-label
on it, but the other two don't have any kind of aria labels orsr-only
text.Originally posted in this discussion thread: #835
Code snippets
You can recreate this by just including an input on your page with the
copyable
orviewable
attribute.e.g.
flux/input/copyable.blade.php
My screenreader sees this as just "button" which gives no clues as to what this action actually does if I choose to interact with it.
How do you expect it to work?
I expect the action buttons to have text in them (not just an icon) so it can pass accessibility tests and the buttons can be used by a screenreader.
e.g.
flux/input/copyable.blade.php
I manually published and adjusted this to add
sr-only
text which allows this button to have a label for screenreaders so it reads something like "Copy to clipboard, button" instead which makes a lot more sense.Please confirm (incomplete submissions will not be addressed)
The text was updated successfully, but these errors were encountered: