Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

fix(MenuItem): make spacebar not scroll the page, fix submenu not closing #1735

Merged
merged 30 commits into from
Aug 22, 2019

Conversation

lucivpav
Copy link
Contributor

@lucivpav lucivpav commented Jul 30, 2019

This PR makes sure that pressing space on focused MenuItem does not lead the page being scrolled. The issue is described here: #1708.

It also fixes a problem when clicking on a submenu item with keyboard does not lead to the menu to be closed.

@codecov
Copy link

codecov bot commented Jul 30, 2019

Codecov Report

Merging #1735 into master will increase coverage by 0.2%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #1735     +/-   ##
=========================================
+ Coverage    69.5%   69.71%   +0.2%     
=========================================
  Files         874      874             
  Lines        7605     7611      +6     
  Branches     2242     2245      +3     
=========================================
+ Hits         5286     5306     +20     
+ Misses       2311     2297     -14     
  Partials        8        8
Impacted Files Coverage Δ
...b/accessibility/Behaviors/Menu/menuItemBehavior.ts 100% <100%> (ø) ⬆️
packages/react/src/components/Menu/MenuItem.tsx 51.51% <100%> (+16.77%) ⬆️

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 f336d39...cb2fbcc. Read the comment docs.

@lucivpav lucivpav changed the title fix(MenuItem): make space not scroll the page fix(MenuItem): make spacebar not scroll the page Jul 30, 2019
@layershifter layershifter added the 🧰 fix Introduces fix for broken behavior. label Aug 20, 2019
@jurokapsiar jurokapsiar merged commit 0a36716 into master Aug 22, 2019
@delete-merged-branch delete-merged-branch bot deleted the fix/menu-item-space branch August 22, 2019 17:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🧰 fix Introduces fix for broken behavior. 🚀 ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants