Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add role="presentation" to all decorative <svg> #3903

Merged
merged 2 commits into from
May 21, 2021
Merged

Conversation

compulim
Copy link
Contributor

@compulim compulim commented May 21, 2021

Fixes #3825.

Changelog Entry

Fixes

Description

Based on the discussion of #3825, we are adding role="presentation" to all <svg> that are decorative.

The <ErrorIcon> was not used, thus, removed from the project.

Design

(Please refer to #3825)

Specific Changes

  • Updated all decorative <svg> with role="presentation"
  • Removed <ErrorIcon> as it is not used
  • I have added tests and executed them locally
  • I have updated CHANGELOG.md
  • I have updated documentation

Review Checklist

This section is for contributors to review your work.

  • Accessibility reviewed (tab order, content readability, alt text, color contrast)
  • Browser and platform compatibilities reviewed
  • CSS styles reviewed (minimal rules, no z-index)
  • Documents reviewed (docs, samples, live demo)
  • Internationalization reviewed (strings, unit formatting)
  • package.json and package-lock.json reviewed
  • Security reviewed (no data URIs, check for nonce leak)
  • Tests reviewed (coverage, legitimacy)

@compulim compulim marked this pull request as ready for review May 21, 2021 00:30
@compulim compulim changed the title Add role="presentation" Add role="presentation" for SVGs May 21, 2021
@compulim compulim changed the title Add role="presentation" for SVGs Add role="presentation" to all decorative <svg> May 21, 2021
@compulim compulim enabled auto-merge (squash) May 21, 2021 01:12
@compulim compulim merged commit e01c446 into main May 21, 2021
@compulim compulim deleted the fix-a11y-svg-role branch May 21, 2021 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Accessibility] SVG images inside buttons need have role="presentation"
2 participants