Skip to content

Commit

Permalink
fix(overflow-menu): added different styles for focus and hover (carbo…
Browse files Browse the repository at this point in the history
…n-design-system#788)

* fix(overflow-menu): added different styles for focus and hover

* fix(overflow-menu): fixed danger hover/focus
  • Loading branch information
marijohannessen authored and asudoh committed May 23, 2018
1 parent 7772ac1 commit 4a532f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/overflow-menu/_overflow-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,13 @@
&:focus {
outline: 1px solid transparent;
background-color: $hover-row;
text-decoration: underline;
}

.#{$prefix}--overflow-menu-options__option--danger & {
&:focus {
background-color: $support-01;
outline: 1px solid transparent;
text-decoration: underline;
}
}
}
Expand All @@ -119,6 +121,8 @@

.#{$prefix}--overflow-menu-options__option:hover .#{$prefix}--overflow-menu-options__btn {
background-color: $hover-row;
color: $inverse-01;
text-decoration: none;
}

.#{$prefix}--overflow-menu-options__option--danger {
Expand Down

0 comments on commit 4a532f0

Please sign in to comment.