Add coexistence checks to all enqueue methods to prevent loading both React and Grid.js assets simultaneously. Changes: - ReactAdmin.php: Only enqueue React assets when ?react=1 - Init.php: Skip Grid.js when React active on admin pages - Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0 - Customer.php, Product.php, License.php: Add coexistence checks Now the toggle between Classic and React versions works correctly. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
31 lines
640 B
Markdown
31 lines
640 B
Markdown
# jsx-a11y/scope
|
|
|
|
💼 This rule is enabled in the following configs: ☑️ `recommended`, 🔒 `strict`.
|
|
|
|
<!-- end auto-generated rule header -->
|
|
|
|
The `scope` prop should be used only on `<th>` elements.
|
|
|
|
## Rule details
|
|
|
|
This rule takes no arguments.
|
|
|
|
### Succeed
|
|
```jsx
|
|
<th scope="col" />
|
|
<th scope={scope} />
|
|
```
|
|
|
|
### Fail
|
|
|
|
```jsx
|
|
<div scope />
|
|
```
|
|
|
|
## Accessibility guidelines
|
|
- [WCAG 1.3.1](https://www.w3.org/WAI/WCAG21/Understanding/info-and-relationships)
|
|
- [WCAG 4.1.1](https://www.w3.org/WAI/WCAG21/Understanding/parsing)
|
|
|
|
### Resources
|
|
- [axe-core, scope-attr-valid](https://dequeuniversity.com/rules/axe/3.5/scope-attr-valid)
|