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

feat(ToolbarMenuItem): add menu prop #1984

Merged
merged 43 commits into from
Oct 22, 2019
Merged

Conversation

mnajdova
Copy link
Contributor

@mnajdova mnajdova commented Sep 30, 2019

Added menu prop on the ToolbarMenuItem for allowing creating submenus in the Toolbar. It behaves the same way as the Menu's submenus - the implementation is a bit different, because we need to support popups inside the ToolbarMenuItem too.

-added TODO
-fixed typings
@vercel vercel bot temporarily deployed to staging October 1, 2019 08:13 Inactive
@mnajdova mnajdova changed the title [WIP] feat(ToolbarMenuItem): add menu prop feat(ToolbarMenuItem): add menu prop Oct 1, 2019
-refactorings on the behavior
@codecov
Copy link

codecov bot commented Oct 1, 2019

Codecov Report

Merging #1984 into master will decrease coverage by 0.51%.
The diff coverage is 19.04%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1984      +/-   ##
==========================================
- Coverage   70.38%   69.86%   -0.52%     
==========================================
  Files         895      896       +1     
  Lines        7890     7963      +73     
  Branches     2311     2309       -2     
==========================================
+ Hits         5553     5563      +10     
- Misses       2324     2387      +63     
  Partials       13       13
Impacted Files Coverage Δ
packages/react/src/components/Menu/MenuItem.tsx 48.48% <ø> (ø) ⬆️
packages/react/src/components/Menu/Menu.tsx 71.79% <ø> (ø) ⬆️
.../teams/components/Toolbar/toolbarMenuItemStyles.ts 7.14% <0%> (-0.55%) ⬇️
...ility/Behaviors/Toolbar/toolbarMenuItemBehavior.ts 100% <100%> (ø)
...kages/react/src/components/Toolbar/ToolbarItem.tsx 43.07% <12.5%> (-2.09%) ⬇️
...s/react/src/components/Toolbar/ToolbarMenuItem.tsx 25.8% <15.71%> (-37.16%) ⬇️
...kages/react/src/components/Toolbar/ToolbarMenu.tsx 60% <66.66%> (+1.37%) ⬆️

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 8cc9007...58fef76. Read the comment docs.

@layershifter
Copy link
Member

We also need some E2E to be sure that this feature will not break.

@layershifter layershifter added the ⚙️ enhancement New feature or request label Oct 22, 2019
@mnajdova mnajdova merged commit 69a4383 into master Oct 22, 2019
@mnajdova mnajdova deleted the feat/toolbar-menu-submenu branch October 22, 2019 16:56
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.

None yet

4 participants