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(dialog): Add Foundation#setInitialFocusEl API. #4719

Merged
merged 8 commits into from
May 16, 2019

Conversation

joyzhong
Copy link
Contributor

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 and Adapter#trapFocus first argument is now the initialFocusEl.

@joyzhong joyzhong requested a review from abhiomkar May 15, 2019 16:05
@codecov-io
Copy link

codecov-io commented May 15, 2019

Codecov Report

❗ No coverage uploaded for pull request base (develop@3ddbcd4). Click here to learn what that means.
The diff coverage is 87.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop    #4719   +/-   ##
==========================================
  Coverage           ?   98.93%           
==========================================
  Files              ?      129           
  Lines              ?     6301           
  Branches           ?      821           
==========================================
  Hits               ?     6234           
  Misses             ?       66           
  Partials           ?        1
Impacted Files Coverage Δ
packages/mdc-dialog/foundation.ts 99.34% <100%> (ø)
packages/mdc-dialog/component.ts 99% <83.33%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ddbcd4...0122dcf. Read the comment docs.

@mdc-web-bot
Copy link
Collaborator

All 690 screenshot tests passed for commit f28fb3e vs. develop! 💯🎉

packages/mdc-dialog/README.md Outdated Show resolved Hide resolved
packages/mdc-dialog/foundation.ts Outdated Show resolved Hide resolved
packages/mdc-dialog/foundation.ts Outdated Show resolved Hide resolved
packages/mdc-dialog/foundation.ts Outdated Show resolved Hide resolved
packages/mdc-dialog/constants.ts Outdated Show resolved Hide resolved
@material-components material-components deleted a comment from abhiomkar May 15, 2019
@joyzhong joyzhong requested a review from abhiomkar May 16, 2019 13:54
@mdc-web-bot
Copy link
Collaborator

All 693 screenshot tests passed for commit 6ad2e48 vs. develop! 💯🎉

Copy link
Collaborator

@abhiomkar abhiomkar left a 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.

packages/mdc-dialog/constants.ts Outdated Show resolved Hide resolved
packages/mdc-dialog/constants.ts Outdated Show resolved Hide resolved
packages/mdc-dialog/foundation.ts Show resolved Hide resolved
packages/mdc-dialog/README.md Outdated Show resolved Hide resolved
@mdc-web-bot
Copy link
Collaborator

All 693 screenshot tests passed for commit 0122dcf vs. develop! 💯🎉

@joyzhong joyzhong merged commit 7ac7e6e into develop May 16, 2019
moog16 pushed a commit that referenced this pull request May 28, 2019
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.
moog16 pushed a commit that referenced this pull request Jun 3, 2019
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.
abhiomkar pushed a commit that referenced this pull request Jun 11, 2019
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants