eslint-plugin-fluentui-jsx-a11y
eslint-plugin-fluentui-jsx-a11y copied to clipboard
create a warning to suggesting that a visual label is better than an aria-label
e.g Dropdown component, SpinButton component or certain buttons
Prefer a visual label over aria-label
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 :)
raised PR https://github.com/microsoft/eslint-plugin-fluentui-jsx-a11y/pull/114