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

fix(expressive-modal): ensure waiting for transitionend event #5189

Merged

Conversation

asudoh
Copy link
Contributor

@asudoh asudoh commented Feb 17, 2021

Related Ticket(s)

Refs #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.

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.
@asudoh asudoh added the package: web components Work necessary for the IBM.com Library web components package label Feb 17, 2021
@asudoh asudoh requested a review from kennylam February 17, 2021 00:11
@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Feb 17, 2021

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Feb 17, 2021

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Feb 17, 2021

Copy link
Member

@kennylam kennylam left a 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?

@asudoh asudoh changed the base branch from master to release/v1.16.0 February 17, 2021 08:00
@asudoh
Copy link
Contributor Author

asudoh commented Feb 17, 2021

Can you target the release branch please release/v1.16.0?

Done - Thank you for pointing it out @kennylam!

Copy link
Member

@kennylam kennylam left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @asudoh!

@kennylam kennylam added the Ready to merge Label for the pull requests that are ready to merge label Feb 17, 2021
@kodiakhq kodiakhq bot merged commit a50a2e6 into carbon-design-system:release/v1.16.0 Feb 17, 2021
@asudoh asudoh deleted the expressive-modal-focus branch February 17, 2021 09:53
IgnacioBecerra pushed a commit to IgnacioBecerra/ibm-dotcom-library that referenced this pull request Feb 22, 2021
…-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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: web components Work necessary for the IBM.com Library web components package Ready to merge Label for the pull requests that are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants