Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

fix(menu): Remove code to focus on first/last element on TAB/SHIFT+TAB. #4786

Merged
merged 3 commits into from
Jun 4, 2019

Conversation

joyzhong
Copy link
Contributor

@joyzhong joyzhong commented Jun 4, 2019

Instead, TAB should close the menu and respect default browser tab order.

BREAKING CHANGE: The following adapter methods were removed: isFirstElementFocused, isLastElementFocused, focusFirstElement, focusLastElement. The following functionality to handle TAB on menusurface has been removed: "If TAB and last element is focused => Focus on first element", "If SHIFT + TAB and first element is focused => Focus on last element"

@joyzhong joyzhong changed the base branch from master to develop June 4, 2019 15:08
@joyzhong joyzhong requested a review from abhiomkar June 4, 2019 15:28
@codecov-io
Copy link

codecov-io commented Jun 4, 2019

Codecov Report

Merging #4786 into develop will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #4786      +/-   ##
===========================================
- Coverage    98.95%   98.95%   -0.01%     
===========================================
  Files          129      129              
  Lines         6332     6309      -23     
  Branches       820      812       -8     
===========================================
- Hits          6266     6243      -23     
  Misses          65       65              
  Partials         1        1
Impacted Files Coverage Δ
packages/mdc-menu-surface/component.ts 100% <ø> (ø) ⬆️
packages/mdc-menu-surface/foundation.ts 100% <100%> (ø) ⬆️

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 04aa6ff...7d24ca4. Read the comment docs.

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.

Our current changelog script doesn't seem to support multi-line breaking change message. Please wrap it to single line.

@joyzhong joyzhong changed the title fix(menu): Remove code to focus on first/element on TAB. fix(menu): Remove code to focus on first/last element on TAB/SHIFT+TAB. Jun 4, 2019
@mdc-web-bot
Copy link
Collaborator

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

@joyzhong joyzhong merged commit 99af567 into develop Jun 4, 2019
@joyzhong joyzhong deleted the fix/menu_tab branch June 4, 2019 19:47
abhiomkar pushed a commit that referenced this pull request Jun 11, 2019
…B. (#4786)

Instead, TAB should close the menu and respect default browser tab order.

BREAKING CHANGE: The following adapter methods were removed: isFirstElementFocused, isLastElementFocused, focusFirstElement, focusLastElement. The following functionality to handle TAB on menusurface has been removed: "If TAB and last element is focused => Focus on first element", "If SHIFT + TAB and first element is focused => Focus on last element"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants