8000 Merge pull request #468 from github/kendallgassner-patch-1 · github/eslint-plugin-github@2a6777e · GitHub
[go: up one dir, main page]

Skip to content

Commit 2a6777e

Browse files
Merge pull request #468 from github/kendallgassner-patch-1
Update a11y-no-visually-hidden-interactive-element.md
2 parents cd17c09 + 6e469d2 commit 2a6777e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

docs/rules/a11y-no-visually-hidden-interactive-element.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Note: we are not guarding against visually hidden `input` elements at this time.
1212

1313
### Why do we visually hide content?
1414

15-
Visually hiding content can be useful when you want to provide information specifically to screen reader users or other assitive technology users while keeping content hidden from sighted users.
15+
Visually hiding content can be useful when you want to provide information specifically to screen reader users or other assistive technology users while keeping content hidden from sighted users.
1616

1717
Applying the following css will visually hide content while still making it accessible to screen reader users.
1818

@@ -61,16 +61,14 @@ width: 1px;
6161

6262
- className - A css className that visually hides content. Defaults to `sr-only`.
6363
- componentName - A react component name that visually hides content. Defaults to `VisuallyHidden`.
64-
- htmlPropName - A prop name used to replace the semantic element that is rendered. Defaults to `as`.
6564

6665
```json
6766
{
6867
"a11y-no-visually-hidden-interactive-element": [
6968
"error",
7069
{
7170
"className": "visually-hidden",
72-
"componentName": "VisuallyHidden",
73-
"htmlPropName": "as"
71+
"componentName": "VisuallyHidden"
7472
}
7573
]
7674
}

lib/rules/a11y-no-visually-hidden-interactive-element.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const defaultcomponentName = 'VisuallyHidden'
88
const schema = generateObjSchema({
99
className: {type: 'string'},
1010
componentName: {type: 'string'},
11-
htmlPropName: {type: 'string'},
1211
})
1312

1413
/** Note: we are not including input elements at this time

0 commit comments

Comments
 (0)
0