fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[Accessibility][Textfield]: Component should have aria-disabled attribute set when it is disabled

Open ghost opened this issue 9 years ago • 3 comments

For disabled textfield, aria-disabled attribute should be specified, else screen readers will have trouble reading it clearly. See this: http://www.w3.org/TR/wai-aria/states_and_properties#aria-disabled

Repro: https://fabricreact.azurewebsites.net/fabric-react/master/#/examples/textfield

The html for disabled textfield is as below: <div class="ms-TextField is-disabled"><label for="TextField1785" class="ms-Label">Disabled TextField</label><input type="text" label="Disabled TextField" disabled="" id="TextField1785" value="" class="ms-TextField-field" aria-describedby="TextFieldDescription1786" aria-invalid="false"><!-- react-text: 29752 --><!-- /react-text --><!-- react-text: 29753 --><!-- /react-text --></div>

ghost avatar Feb 22 '17 13:02 ghost

Same as #1084, disabled components are not supposed to be focusable, we shouldn't need aria-disabled on these?

mdahamiwal avatar Feb 22 '17 15:02 mdahamiwal

Please checkout my reply in #1084

satishc-dev avatar Feb 23 '17 10:02 satishc-dev

This looks like it was fixed in #1236 . I'm closing it for now, but please feel free to reopen it if that's not the case.

joschect avatar Mar 24 '17 16:03 joschect