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(ResponseActions): Add click state #382

Merged
merged 3 commits into from
Dec 17, 2024

Conversation

rebeccaalpert
Copy link
Member

@rebeccaalpert rebeccaalpert commented Dec 12, 2024

Add click state to response actions block. The last currently selected item will remain selected until you click someone else on the screen. Clients can also pass in custom tooltips or aria labels based on the clicked state.

Docs:

I've been working directly with Kayla on these already - she has seen them.

@patternfly-build
Copy link

patternfly-build commented Dec 12, 2024

@rebeccaalpert rebeccaalpert linked an issue Dec 12, 2024 that may be closed by this pull request
@rebeccaalpert rebeccaalpert force-pushed the response-action-clicked branch 3 times, most recently from d39d4ea to ef0b576 Compare December 13, 2024 14:41
rebeccaalpert and others added 2 commits December 13, 2024 12:24
Add click state to response actions block. The last currently selected item will remain selected. Clients can also pass in custom tooltips or aria labels based on the clicked state.
…mples/Messages/Messages.md

Co-authored-by: Erin Donehoo <[email protected]>
Copy link
Contributor

@edonehoo edonehoo left a comment

Choose a reason for hiding this comment

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

lookin good!

Copy link
Contributor

@nicolethoen nicolethoen left a comment

Choose a reason for hiding this comment

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

The screen reader is not capturing the change in the aria-label after clicking the button.
I believe you need to use an aria-live attribute in this case per this guidance: https://www.patternfly.org/components/tooltip/accessibility#aria-live

@rebeccaalpert
Copy link
Member Author

Just added; thank you for catching!

@nicolethoen nicolethoen merged commit bfa650d into patternfly:main Dec 17, 2024
5 checks passed
Copy link

🎉 This PR is included in version 2.2.0-prerelease.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

Track internal clicked state of response actions
4 participants