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

fix(color-loupe): svg should be hidden from screen readers #3316 #3318

Conversation

majornista
Copy link
Contributor

@majornista majornista commented Jun 14, 2023

Description

Add aria-hidden="true" to the svg within the ColorLoupe shadowDom.

Related issue(s)

Motivation and context

How has this been tested?

  • Test case 1
    1. Go here
    2. Do this
  • Test case 2
    1. Go here
    2. Do this

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (minor updates related to the tooling or maintenance of the repository, does not impact compiled assets)

Checklist

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • If my change required a change to the documentation, I have updated the documentation in this pull request.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have reviewed at the Accessibility Practices for this feature, see: Aria Practices

Best practices

This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against main.

@majornista majornista added bug Something isn't working a11y Issues related to accessibility Component: Color Loupe VoiceOver labels Jun 14, 2023
@majornista majornista linked an issue Jun 14, 2023 that may be closed by this pull request
1 task
@github-actions
Copy link

github-actions bot commented Jun 14, 2023

Tachometer results

Chrome

color-area permalink

Version Bytes Avg Time vs remote vs branch
npm latest 428 kB 165.89ms - 168.55ms - unsure 🔍
-1% - +1%
-1.63ms - +1.60ms
branch 428 kB 166.32ms - 168.15ms unsure 🔍
-1% - +1%
-1.60ms - +1.63ms
-

color-handle permalink

Version Bytes Avg Time vs remote vs branch
npm latest 350 kB 66.98ms - 67.49ms - unsure 🔍
-1% - +1%
-0.37ms - +0.49ms
branch 351 kB 66.83ms - 67.52ms unsure 🔍
-1% - +1%
-0.49ms - +0.37ms
-

color-loupe permalink

Version Bytes Avg Time vs remote vs branch
npm latest 342 kB 45.63ms - 46.01ms - unsure 🔍
-1% - +0%
-0.31ms - +0.16ms
branch 343 kB 45.77ms - 46.03ms unsure 🔍
-0% - +1%
-0.16ms - +0.31ms
-

color-slider permalink

Version Bytes Avg Time vs remote vs branch
npm latest 432 kB 147.14ms - 148.40ms - unsure 🔍
-1% - +1%
-0.87ms - +0.99ms
branch 432 kB 147.02ms - 148.39ms unsure 🔍
-1% - +1%
-0.99ms - +0.87ms
-

color-wheel permalink

Version Bytes Avg Time vs remote vs branch
npm latest 434 kB 150.50ms - 152.26ms - unsure 🔍
-0% - +1%
-0.63ms - +1.35ms
branch 434 kB 150.56ms - 151.47ms unsure 🔍
-1% - +0%
-1.35ms - +0.63ms
-
Firefox

color-area permalink

Version Bytes Avg Time vs remote vs branch
npm latest 428 kB 466.65ms - 503.39ms - unsure 🔍
-4% - +7%
-20.56ms - +32.48ms
branch 428 kB 459.93ms - 498.19ms unsure 🔍
-7% - +4%
-32.48ms - +20.56ms
-

color-handle permalink

Version Bytes Avg Time vs remote vs branch
npm latest 350 kB 277.15ms - 309.09ms - unsure 🔍
-8% - +7%
-24.74ms - +20.82ms
branch 351 kB 278.84ms - 311.32ms unsure 🔍
-7% - +8%
-20.82ms - +24.74ms
-

color-loupe permalink

Version Bytes Avg Time vs remote vs branch
npm latest 342 kB 191.37ms - 226.79ms - unsure 🔍
-5% - +16%
-9.67ms - +31.79ms
branch 343 kB 187.24ms - 208.80ms unsure 🔍
-15% - +4%
-31.79ms - +9.67ms
-

color-slider permalink

Version Bytes Avg Time vs remote vs branch
npm latest 432 kB 444.82ms - 489.58ms - unsure 🔍
-6% - +6%
-26.26ms - +28.98ms
branch 432 kB 449.66ms - 482.02ms unsure 🔍
-6% - +6%
-28.98ms - +26.26ms
-

color-wheel permalink

Version Bytes Avg Time vs remote vs branch
npm latest 434 kB 420.63ms - 454.65ms - unsure 🔍
-2% - +8%
-7.65ms - +34.69ms
branch 434 kB 411.53ms - 436.71ms unsure 🔍
-8% - +2%
-34.69ms - +7.65ms
-

@Westbrook Westbrook force-pushed the 3316-buga11y-colorloupe-svg-should-be-hidden-from-screen-readers branch from d50c5fd to 5c03a24 Compare June 26, 2023 20:28
Copy link
Collaborator

@Westbrook Westbrook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirming CI with the small tweak I made to the test, and then we should be good to go here. Thanks @majornista!

@Westbrook Westbrook merged commit 01e75b7 into main Jun 26, 2023
44 of 46 checks passed
@Westbrook Westbrook deleted the 3316-buga11y-colorloupe-svg-should-be-hidden-from-screen-readers branch June 26, 2023 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y Issues related to accessibility bug Something isn't working Component: Color Loupe VoiceOver
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug][a11y]: ColorLoupe svg should be hidden from screen readers
2 participants