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(store-ui): Remove unnecessary ID and improve a11y #915

Merged
merged 3 commits into from
Aug 20, 2021

Conversation

Gmantiqueira
Copy link
Contributor

What's the purpose of this pull request?

When we use the Carousel twice in the same page, the ID label decreases our A11y points in Lighthouse.

@Gmantiqueira Gmantiqueira requested a review from a team as a code owner August 20, 2021 19:48
@netlify
Copy link

netlify bot commented Aug 20, 2021

✔️ Deploy Preview for storeui ready!

🔨 Explore the source changes: 5f0542f

🔍 Inspect the deploy log: https://app.netlify.com/sites/storeui/deploys/61200983f85bee000740b8ee

😎 Browse the preview: https://deploy-preview-915--storeui.netlify.app

data-testid={testId}
aria-label="carousel"
>
<section data-store-carousel data-testid={testId} aria-label="carousel">
Copy link
Member

Choose a reason for hiding this comment

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

This is actually necessary since we're using aria-controls on the arrows below. Without the id you should get another a11y error

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 5f0542f:

Sandbox Source
Store UI Typescript Configuration

@Gmantiqueira Gmantiqueira merged commit 7ee629d into master Aug 20, 2021
@Gmantiqueira Gmantiqueira deleted the fix/carousel-id branch August 20, 2021 20:22
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.

2 participants