You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/avoid-using-aria-describedby-for-primary-labelling.md
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,8 @@
1
-
# aria-describedby provides additional context and is not meant for primary labeling. (`avoid-using-aria-describedby-for-primary-labelling`)
1
+
# Aria-describedby provides additional context and is not meant for primary labeling (`@microsoft/fluentui-jsx-a11y/avoid-using-aria-describedby-for-primary-labelling`)
2
+
3
+
⚠️ This rule _warns_ in the ✅ `recommended` config.
4
+
5
+
<!-- end auto-generated rule header -->
2
6
3
7
You should avoid using `aria-describedby` as a primary labeling mechanism because it is intended to provide supplementary or additional information, not to act as the main label for an element.
Copy file name to clipboardExpand all lines: docs/rules/badge-needs-accessible-name.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,12 @@
4
4
5
5
<!-- end auto-generated rule header -->
6
6
7
+
💼 This rule is enabled in the ✅ `recommended` config.
8
+
9
+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
10
+
11
+
<!-- end auto-generated rule header -->
12
+
7
13
Badge information should be surfaced as part of the control that it is associated with, because, badges themselves do not receive focus meaning they are not directly accessible by screen readers. If the combination of icon and badge communicates some meaningful information, that information should be surfaced in another way through screenreader or tooltip on the component the badge is associated with.
8
14
9
15
Badge content is exposed as text, and is treated by screen readers as if it were inline content of the control it is associated with.
0 commit comments