Skip to content

Commit

Permalink
Fix dropdown hover styles
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Dec 11, 2019
1 parent 41e1dad commit 45759a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/components/src/dropdown-menu/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@
}

&:hover,
&:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover {
&:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover {
@include menu-style__hover();
box-shadow: none;
}

// Formatting buttons
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/menu-item/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
flex: 0 0 auto;
}

&:hover:not(:disabled):not([aria-disabled="true"]) {
// This needs to be higher-specificity that the default button hover style.
&.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover {
@include menu-style__hover;

.components-menu-item__shortcut {
Expand Down

0 comments on commit 45759a8

Please sign in to comment.