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

feat(#16235): display a11y issues number in addon tab title #17983

Merged
merged 5 commits into from
May 3, 2022

Conversation

jsomsanith
Copy link
Contributor

@jsomsanith jsomsanith commented Apr 16, 2022

Issue: #16235

What I did

Display the number of a11y issues in the addon tab title.

Addon-a11y context doesn't store the axe result in a react state anymore, but in the store exposed by api.
The title in addon-a11y is now a function that gets the addon result from api addon state, and build the title accordingly.

impacted tests have been adapted, and tests on addon-a11y manager have been added.

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.

@nx-cloud
Copy link

nx-cloud bot commented Apr 16, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 1c33d26. 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.

@jsomsanith jsomsanith force-pushed the jsomsanith/16235/a11y_tab_nb branch from 3d4ee80 to 147271d Compare April 17, 2022 09:46
@jsomsanith jsomsanith marked this pull request as ready for review April 17, 2022 09:53
@MichaelArestad
Copy link
Contributor

The design looks good to me. Nice work! @kylegach or @shilman can you please review the code?

@kylegach kylegach self-assigned this Apr 28, 2022
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.

Works a treat, and code looks good! Thank you, @jsomsanith! 🙏 This a nice little tweak, and I appreciate that you properly tested it.

@kylegach kylegach merged commit 27236cc into next May 3, 2022
@kylegach kylegach deleted the jsomsanith/16235/a11y_tab_nb branch May 3, 2022 19:04
@jsomsanith
Copy link
Contributor Author

Thank you for the review @kylegach
Yeah tests are important :)

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.

3 participants