- 将所有图片路径从绝对路径改为使用 process.env.PUBLIC_URL - 修复 HomePage.tsx 中所有图片引用 - 修复 CoursePage.tsx 中所有图片引用 - 确保图片在 GitHub Pages 上正确加载 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1.0 KiB
1.0 KiB
jsx-a11y/aria-unsupported-elements
💼 This rule is enabled in the following configs: ☑️ recommended, 🔒 strict.
Certain reserved DOM elements do not support ARIA roles, states and properties. This is often because they are not visible, for example meta, html, script, style. This rule enforces that these DOM elements do not contain the role and/or aria-* props.
Rule details
This rule takes no arguments.
Succeed
<!-- Good: the meta element should not be given any ARIA attributes -->
<meta charset="UTF-8" />
Fail
<!-- Bad: the meta element should not be given any ARIA attributes -->
<meta charset="UTF-8" aria-hidden="false" />