katoikia-app/web-ui/web-react/node_modules/eslint-plugin-jsx-a11y/docs/rules/scope.md

23 lines
302 B
Markdown
Raw Normal View History

2022-07-06 04:15:11 +00:00
# scope
The `scope` scope should be used only on `<th>` elements.
#### References
1. [axe-core, scope](https://dequeuniversity.com/rules/axe/1.1/scope)
## Rule details
This rule takes no arguments.
### Succeed
```jsx
<th scope="col" />
<th scope={scope} />
```
### Fail
```jsx
<div scope />
```