-
Notifications
You must be signed in to change notification settings - Fork 159
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(expressive-modal): ensure waiting for transitionend event #5189
fix(expressive-modal): ensure waiting for transitionend event #5189
Conversation
Changes the "focus on the primary focusable element" logic in `<dds-expressive-modal>` to wait for `transitionend` event. Without it, the attempt to focus fails. Also changes `<dds-locale-modal>` to make `<dds-region-item>` as the primary focusable element. Refs carbon-design-system#5173.
Deploy preview created for package Built with commit: f8644e6fc5108d177acf96edc36c83c635eeee73 |
Deploy preview created for package Built with commit: f8644e6fc5108d177acf96edc36c83c635eeee73 |
Deploy preview created for package Built with commit: f8644e6fc5108d177acf96edc36c83c635eeee73 |
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.
Thanks for jumping in on this @asudoh! Can you target the release branch please release/v1.16.0
?
Done - Thank you for pointing it out @kennylam! |
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.
LGTM! Thanks @asudoh!
…-design-system#5189) ### Related Ticket(s) Refs carbon-design-system#5173. ### Description Changes the "focus on the primary focusable element" logic in `<dds-expressive-modal>` to wait for `transitionend` event. Without it, the attempt to focus fails. Also changes `<dds-locale-modal>` to make `<dds-region-item>` as the primary focusable element. ### Changelog **Changed** - The "focus on the primary focusable element" logic in `<dds-expressive-modal>` to wait for `transitionend` event. - `<dds-locale-modal>` to make `<dds-region-item>` as the primary focusable element.
Related Ticket(s)
Refs #5173.
Description
Changes the "focus on the primary focusable element" logic in
<dds-expressive-modal>
to wait fortransitionend
event. Without it, the attempt to focus fails.Also changes
<dds-locale-modal>
to make<dds-region-item>
as the primary focusable element.Changelog
Changed
<dds-expressive-modal>
to wait fortransitionend
event.<dds-locale-modal>
to make<dds-region-item>
as the primary focusable element.