Skip to content

Conversation

jquense
Copy link
Member

@jquense jquense commented Aug 1, 2025

BREAKING CHANGE: focus first tabbable element in dialog on open and loop focus when tabbing through modal components.

I am relenting on this given some additional feedback from experts that this behavior is better than the native dialog behavior. Eventually we can just switch to dialog if it turns out that is the pattern that "wins"

@jquense jquense changed the base branch from main to jq/docs-update August 1, 2025 15:46
@jquense jquense requested a review from kyletsang August 1, 2025 15:46
Base automatically changed from jq/docs-update to main August 1, 2025 17:27
Copy link
Collaborator

@kyletsang kyletsang left a comment

Choose a reason for hiding this comment

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

1 minor comment + lint failure, but otherwise looks good!

});

function handleFocus(event: FocusEvent) {
console.log('handleFocus', event.target);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove console log

@jquense jquense force-pushed the jq/modal-focus-fix branch from fb5d2dc to 16a0948 Compare August 4, 2025 12:15
@jquense jquense merged commit b30a536 into main Aug 4, 2025
6 of 7 checks passed
@jquense jquense deleted the jq/modal-focus-fix branch August 4, 2025 13:01
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.

2 participants