Open ryan-mcginty-alation opened 1 month ago
Hello !
I think it's better to pass an aria-label to the button, it's more convenient in this use case. Exemple "Open color palette".
That works for me, it seems the only way to do that is currently to completely re-wire the adornment right? Or am I missing something? Maybe a prop could be added like AdornmentProps or buttonAriaLabel?
AdornmentProps
added to the props of MuiColorInput
should be the best options yes ;)
Describe the bug Mui color input does not meet accessibility requirements due to "no discernible text" error for ColorButton adornment. Current implementation of labeled-by only works when the popover is open which isn't useful.
To Reproduce Run AXE accessibility tester via unit test or chrome plugin and note the error:
Expected behavior In my opinion, since this is a purely visual interaction the color button could be set to have role="presentation" and the visually impaired user can simply enter the text value in the input to change the color.
Screenshots