Skip to content

Conversation

miqh
Copy link
Contributor

@miqh miqh commented Oct 11, 2022

Hello there,

This should fix up the accessibility violations being reported for the "Multi" story of the Carousel component.

Did my best with the captioning, but happy to change if necessary.


What does this PR do?

Resolves accessibility violations for Carousel component in Storybook.

Where should the reviewer start?

All changes are within "Multi" story.

What testing has been done on this PR?

Manually confirmed that Storybook no longer reports the accessibility violations.

How should this be manually tested?

As above.

Do Jest tests follow these best practices?

N/A.

  • screen is used for querying.
  • The correct query is used. (Refer to this list of queries)
  • userEvent is used in place of fireEvent.
  • asFragment() is used for snapshot testing.

Any background context you want to provide?

None.

What are the relevant issues?

Refer to #6124.

Screenshots (if appropriate)

N/A.

Do the grommet docs need to be updated?

Don't think so.

Should this PR be mentioned in the release notes?

Up to maintainers to decide.

Is this change backwards compatible or is it a breaking change?

Should have no impact on consumers of the library.

@miqh miqh changed the title Fix Storybook accessibility violation for carousel (#6124) Fix Storybook accessibility violations for the carousel (#6124) Oct 11, 2022
Copy link
Collaborator

@jcfilben jcfilben left a comment

Choose a reason for hiding this comment

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

Looks good!

@ericsoderberghp ericsoderberghp merged commit ff82288 into grommet:master Oct 12, 2022
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.

3 participants