Add accessible names to decorative SVG icons#212
Open
huangkevin-apr wants to merge 1 commit intoPaperMC:mainfrom
Open
Add accessible names to decorative SVG icons#212huangkevin-apr wants to merge 1 commit intoPaperMC:mainfrom
huangkevin-apr wants to merge 1 commit intoPaperMC:mainfrom
Conversation
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.
Description
This PR fixes 6 accessibility violations identified by the IBM Equal Access Accessibility Checker, where SVG elements were missing accessible names in violation of WCAG 1.1.1 (Non-text Content).
Problem
Screen readers were attempting to announce decorative icon elements that lacked proper accessibility attributes. The affected icons include:
"Software"dropdown menu"Plugins"and"Docs"navigation linksDiscord,GitHub, andTwitterScreenshot:


Violation Report:
In all cases, these icons are purely decorative and accompany text labels or are within elements that already have proper

aria-labelattributes. For example, theseaelements providearia-labelto describe the icon, so we should keep thesesvgelements are markedaria-hidden="true":Solution
Added
aria-hidden="true"to all decorative<Icon>components. This attribute instructs screen readers to ignore these SVG elements, preventing redundant and confusing announcements while maintaining visual design.Changes Made
aria-hidden="true"to social media icons (Discord, GitHub, Twitter)aria-hidden="true"to external link icons for "Plugins" and "Docs"aria-hidden="true"to the chevron icon in dropdown menuWCAG Compliance
This fix ensures compliance with: