|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
640 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | # jsx-a11y/scope
|
|---|
| 2 |
|
|---|
| 3 | 💼 This rule is enabled in the following configs: ☑️ `recommended`, 🔒 `strict`.
|
|---|
| 4 |
|
|---|
| 5 | <!-- end auto-generated rule header -->
|
|---|
| 6 |
|
|---|
| 7 | The `scope` prop should be used only on `<th>` elements.
|
|---|
| 8 |
|
|---|
| 9 | ## Rule details
|
|---|
| 10 |
|
|---|
| 11 | This rule takes no arguments.
|
|---|
| 12 |
|
|---|
| 13 | ### Succeed
|
|---|
| 14 | ```jsx
|
|---|
| 15 | <th scope="col" />
|
|---|
| 16 | <th scope={scope} />
|
|---|
| 17 | ```
|
|---|
| 18 |
|
|---|
| 19 | ### Fail
|
|---|
| 20 |
|
|---|
| 21 | ```jsx
|
|---|
| 22 | <div scope />
|
|---|
| 23 | ```
|
|---|
| 24 |
|
|---|
| 25 | ## Accessibility guidelines
|
|---|
| 26 | - [WCAG 1.3.1](https://www.w3.org/WAI/WCAG21/Understanding/info-and-relationships)
|
|---|
| 27 | - [WCAG 4.1.1](https://www.w3.org/WAI/WCAG21/Understanding/parsing)
|
|---|
| 28 |
|
|---|
| 29 | ### Resources
|
|---|
| 30 | - [axe-core, scope-attr-valid](https://dequeuniversity.com/rules/axe/3.5/scope-attr-valid)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.