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

Kds 1953 port button fix from kaizen legacy #4327

Merged
merged 9 commits into from
Nov 21, 2023

Conversation

JakePitman
Copy link
Contributor

@JakePitman JakePitman commented Nov 20, 2023

Why

There was an issue where screen readers would announce the button's contents on page load.

What

Sets aria-live attribute to polite only when a workingLabel is present.
Adds tests
Adds a story to demonstrate button transitioning from a 'ready' state, to 'working', to 'completed'. This story also demonstrates how the screen reader behaves when the button transitions in and out of the 'working' state.

Copy link

changeset-bot bot commented Nov 20, 2023

🦋 Changeset detected

Latest commit: 4b8c60a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@kaizen/components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -0,0 +1,5 @@
---
"@kaizen/components": minor
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be a patch as it seems to fix an issue?

Suggested change
"@kaizen/components": minor
"@kaizen/components": patch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, thanks

@JakePitman JakePitman force-pushed the KDS-1953-port-button-fix-from-kaizen-legacy branch from 2e73f34 to 1d84f2a Compare November 20, 2023 03:48
@JakePitman JakePitman marked this pull request as ready for review November 20, 2023 03:50
@JakePitman JakePitman requested a review from a team as a code owner November 20, 2023 03:50
Copy link
Contributor

github-actions bot commented Nov 20, 2023

✨ Here is your branch preview! ✨

Last updated for commit 4b8c60a: Merge branch 'main' into KDS-1953-port-button-fix-from-kaizen-legacy

Copy link
Contributor

@mcwinter07 mcwinter07 left a comment

Choose a reason for hiding this comment

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

Nice stuff. The stories a good example for our test cases, but I'm wondering if we add it to our docs page to show a basic pattern in action? Potentially we could add it as a canvas below the story that shows its multiple states. Either than or just add a button to the original story to end the working status

@JakePitman JakePitman merged commit 41ff866 into main Nov 21, 2023
15 checks passed
@JakePitman JakePitman deleted the KDS-1953-port-button-fix-from-kaizen-legacy branch November 21, 2023 03:24
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