eslint-plugin-fluentui-jsx-a11y icon indicating copy to clipboard operation
eslint-plugin-fluentui-jsx-a11y copied to clipboard

create a warning to suggesting that a visual label is better than an aria-label

Open aubreyquinn opened this issue 1 year ago • 3 comments

e.g Dropdown component, SpinButton component or certain buttons

aubreyquinn avatar Mar 12 '24 16:03 aubreyquinn

Prefer a visual label over aria-label

aubreyquinn avatar Mar 13 '24 12:03 aubreyquinn

Hi @shweta786 , this article gives a good explanation of the rule: https://react.fluentui.dev/?path=/docs/components-searchbox--docs#placeholder

Basically, aria-label is going to give screen reader users access to the information but that's not great for sighted users :)

aubreyquinn avatar Sep 18 '24 10:09 aubreyquinn

raised PR https://github.com/microsoft/eslint-plugin-fluentui-jsx-a11y/pull/114

shweta786 avatar Sep 19 '24 11:09 shweta786