-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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(dialog): Add Foundation#setInitialFocusEl API. #4719
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4719 +/- ##
==========================================
Coverage ? 98.93%
==========================================
Files ? 129
Lines ? 6301
Branches ? 821
==========================================
Hits ? 6234
Misses ? 66
Partials ? 1
Continue to review full report at Codecov.
|
All 690 screenshot tests passed for commit f28fb3e vs. |
All 693 screenshot tests passed for commit 6ad2e48 vs. |
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!
Please edit BREAKING CHANGE message based on new changes.
All 693 screenshot tests passed for commit 0122dcf vs. |
Add Adapter#getInitialFocusEl API. initialFocusEl will be the element passed in to Adapter#trapFocus. This formalizes the a11y-aligned idea of adding focus to an initial element (in #trapFocus) into the API. BREAKING CHANGE: Dialog Adapter#getInitialFocusEl has been added and Adapter#trapFocus first argument is now the initialFocusEl.
Add Adapter#getInitialFocusEl API. initialFocusEl will be the element passed in to Adapter#trapFocus. This formalizes the a11y-aligned idea of adding focus to an initial element (in #trapFocus) into the API. BREAKING CHANGE: Dialog Adapter#getInitialFocusEl has been added and Adapter#trapFocus first argument is now the initialFocusEl.
Add Adapter#getInitialFocusEl API. initialFocusEl will be the element passed in to Adapter#trapFocus. This formalizes the a11y-aligned idea of adding focus to an initial element (in #trapFocus) into the API. BREAKING CHANGE: Dialog Adapter#getInitialFocusEl has been added and Adapter#trapFocus first argument is now the initialFocusEl.
Add Foundation#setInitialFocusEl, #getInitialFocusEl API.
initialFocusEl
will be the element passed in to Adapter#trapFocus. This formalizes the a11y-aligned idea of adding focus to an initial element (in #trapFocus) into the API.BREAKING CHANGE: Dialog
Foundation#setInitialFocusEl
,Foundation#getInitialFocusEl
have been added andAdapter#trapFocus
first argument is now theinitialFocusEl
.