新增: - backend/venv/ - Python 虚拟环境 - backend/start.sh - 启动脚本(使用虚拟环境) - backend/requirements.txt - 依赖列表 - .gitignore - 忽略虚拟环境和缓存文件 说明: - 每个项目使用独立虚拟环境 - 避免依赖冲突 - 启动脚本自动创建和激活虚拟环境
1016 B
1016 B
jsx-a11y/accessible-emoji
❌ This rule is deprecated.
Emoji have become a common way of communicating content to the end user. To a person using a screen reader, however, they may not be aware that this content is there at all. By wrapping the emoji in a <span>, giving it the role="img", and providing a useful description in aria-label, the screen reader will treat the emoji as an image in the accessibility tree with an accessible name for the end user.
Rule details
This rule takes no arguments.
Succeed
<span role="img" aria-label="Snowman">☃</span>
<span role="img" aria-label="Panda">🐼</span>
<span role="img" aria-labelledby="panda1">🐼</span>
Fail
<span>🐼</span>
<i role="img" aria-label="Panda">🐼</i>