Skip to content

Commit 63ac349

Browse files
authored
Update avoid-both-disabled-and-aria-disabled.md
1 parent 4ddf42a commit 63ac349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/accessibility/avoid-both-disabled-and-aria-disabled.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[From w3 ARIA in HTML ](https://www.w3.org/TR/html-aria/#docconformance-attr):
66
> authors MAY use aria-disabled=true on a button element, rather than the disabled attribute. However, authors SHOULD NOT use both the native HTML attribute and the aria-* attribute together,
77
8-
HTML elements with `disabled` are ignored when a screen reader uses tab navigation. To expose the disabled element, one may use `aria-disabled` and custom js and css to mimic disabled behavior *instead*. Setting both `aria-disabled` and `disabled` is unnecessary.
8+
HTML elements with `disabled` are ignored when a screen reader uses tab navigation. To expose the disabled element, one may use `aria-disabled` and custom JS and CSS to mimic disabled behavior *instead*. Setting both `aria-disabled` and `disabled` is unnecessary.
99

1010
This linter will raise when both `aria-disabled` and `disabled` are set on HTML elements that natively support `disabled` including `button`, `fieldset`, `input`, `optgroup`, `option`, `select`, and `textarea`.
1111

0 commit comments

Comments
 (0)