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(#16232): use a11y params > element properly #17989

Merged
merged 5 commits into from
May 3, 2022

Conversation

jsomsanith
Copy link
Contributor

Issue: #16232

What I did

The a11y param > element was not used properly. It is supposed to be an element id too serve as scan root, but the code takes it as the element itself.
Furthermore, if no element is passed in params, it queries a #story-root element first that comes from nowhere (no ref found in the repo) before taking #root.

I removed this unknown #story-root and take the element param properly as element id.

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.
Added a story about a11 parameters in official-storybook example

@nx-cloud
Copy link

nx-cloud bot commented Apr 17, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 06eeb2f. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

Copy link
Contributor

@kylegach kylegach left a comment

Choose a reason for hiding this comment

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

Thanks for this, @jsomsanith! I left a comment that's worth discussing, but it generally looks good!

@jsomsanith
Copy link
Contributor Author

@kylegach thanks for the review
Fixed with your comment :)

@ndelangen ndelangen requested a review from kylegach May 2, 2022 15:29
- Updates story's parameters to match changes in previous commit (9feb188)
- Minor wording/style changes
Copy link
Contributor

@kylegach kylegach left a comment

Choose a reason for hiding this comment

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

Thanks for this improvement, @jsomsanith! 👏

I pushed a commit with a fix and some minor wording/style updates. I'll merge as soon as CI does its thing.

@kylegach
Copy link
Contributor

kylegach commented May 3, 2022

I don't think the CI failures are related to this PR, so I'm going to merge.

@kylegach kylegach merged commit 114a77c into next May 3, 2022
@kylegach kylegach deleted the jsomsanith/fix/a11y_element_id branch May 3, 2022 19:25
@jsomsanith
Copy link
Contributor Author

Thank for the review :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants