-
Notifications
You must be signed in to change notification settings - Fork 23
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
Conversation
🦋 Changeset detectedLatest commit: 4b8c60a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
.changeset/popular-gifts-sing.md
Outdated
@@ -0,0 +1,5 @@ | |||
--- | |||
"@kaizen/components": minor |
There was a problem hiding this comment.
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?
"@kaizen/components": minor | |
"@kaizen/components": patch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, thanks
2e73f34
to
1d84f2a
Compare
There was a problem hiding this 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
Why
There was an issue where screen readers would announce the button's contents on page load.
What
Sets
aria-live
attribute topolite
only when aworkingLabel
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.