fix: the svg elements has no accessible name#2307
Merged
PeachScript merged 1 commit intoumijs:masterfrom Jan 30, 2026
Merged
Conversation
|
@huangkevin-apr is attempting to deploy a commit to the chencheng's projects Team on Vercel. A member of the Team first needs to authorize it. |
Merged
17 tasks
afc163
approved these changes
Jan 29, 2026
dumi
dumi-assets-types
@dumijs/vue-meta
father-plugin-dumi-theme
@dumijs/preset-vue
dumi-theme-mobile
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤔 这个变动的性质是?/ What is the nature of this change?
🔗 相关 Issue / Related Issue
N/A
(Accessibility issues identified via IBM Equal Access Accessibility Checker)
💡 需求背景和解决方案 / Background or solution
Background
IBM Equal Access Accessibility Checker reports multiple violations in website (https://d.umijs.org/):
The affected SVG icons are non-decorative and user-facing, including:
Without accessible names, these icons are not properly announced by screen readers, which violates WCAG – 1.1.1 Non-text Content and ARIA SVG accessibility requirements.
Solution
This PR adds proper accessible names to all affected SVG icons by:
<title>element to inline SVGstitleprop to reusable SVG componentsThis ensures that all non-decorative SVG elements expose meaningful accessible names to assistive technologies.
✅ 测试说明 / Testing
Fix Before:
Fix After:
📝 更新日志 / Changelog