Skip to content

Commit

Permalink
[MenuItem] fix submenu style (#2676)
Browse files Browse the repository at this point in the history
* fix submenu styles

* fix submenus styles

* support dark portal menus
  • Loading branch information
giladgray authored Jul 11, 2018
1 parent c727c84 commit 71ab33f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/core/src/components/menu/_submenu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
.#{$ns}-submenu {
> .#{$ns}-popover-wrapper {
display: block;
}

.#{$ns}-popover-target {
display: block;

&.#{$ns}-popover-open > .#{$ns}-menu-item {
// keep a trail of hovered items as submenus are opened
Expand All @@ -16,16 +20,17 @@
}
}

// horizontal padding leaves some space from parent menu item, and extends mouse zone
&.#{$ns}-popover {
box-shadow: none;
// horizontal padding leaves some space from parent menu item, and extends mouse zone
padding: 0 $half-grid-size;

> .#{$ns}-popover-content {
box-shadow: $pt-popover-box-shadow;
}

.#{$ns}-dark & {
.#{$ns}-dark &,
&.#{$ns}-dark {
box-shadow: none;

> .#{$ns}-popover-content {
Expand Down

1 comment on commit 71ab33f

@blueprint-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MenuItem] fix submenu style (#2676)

Preview: documentation | landing | table

Please sign in to comment.