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 alisonjoseph committed May 18, 2018
1 parent 5d7f02b commit f1b97c9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/overflow-menu/_overflow-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@

&:focus {
outline: 1px solid transparent;
background-color: $brand-01;
color: $inverse-01;
text-decoration: underline;
}

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

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

.#{$prefix}--overflow-menu-options__option--danger {
Expand All @@ -143,7 +144,7 @@
.#{$prefix}--overflow-menu-options__option--disabled:hover .#{$prefix}--overflow-menu-options__btn {
color: $text-01;
opacity: 0.5;

&:active,
&:focus {
background-color: $ui-01;
Expand Down

0 comments on commit f1b97c9

Please sign in to comment.