Skip to content

Commit

Permalink
fix: button styling on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Jan 21, 2019
1 parent 619e8f9 commit 7455c34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ exports[`Button scss have to match default theme snapshot 1`] = `
color: var(--color-sea-green);
background-color: var(--color-mint-green-50);
border-color: var(--color-mint-green-50);
box-shadow: 0 0 0 0 0 0 var(--button-border-width--hover) var(--color-mint-green-50); }
box-shadow: 0 0 0 var(--button-border-width--hover) var(--color-mint-green-50); }
.no-touch .dnb-button--primary:hover:not([disabled]):not([disabled]):active {
box-shadow: 0 0 0 2px transparent;
border-color: transparent; }
Expand All @@ -313,7 +313,7 @@ exports[`Button scss have to match default theme snapshot 1`] = `
color: var(--color-sea-green);
background-color: var(--color-mint-green-50);
border-color: var(--color-mint-green-50);
box-shadow: 0 0 0 0 0 0 var(--button-border-width--hover) var(--color-mint-green-50); }
box-shadow: 0 0 0 var(--button-border-width--hover) var(--color-mint-green-50); }
.no-touch .dnb-button--secondary:hover:not([disabled]):not([disabled]):active {
box-shadow: 0 0 0 2px transparent;
border-color: transparent; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
background-color: $background-color;
border-color: $background-color;

@include fakeBorder(
null,
0 0 0 var(--button-border-width--hover) $background-color
);
box-shadow: 0 0 0 var(--button-border-width--hover) $background-color;

&:not([disabled]):active {
@include fakeBorder(transparent);
Expand Down

0 comments on commit 7455c34

Please sign in to comment.