Skip to content

Commit

Permalink
fix(buttons.scss): fix focus color of buttons
Browse files Browse the repository at this point in the history
fix #74
  • Loading branch information
BcRikko committed Jul 7, 2019
1 parent 883befc commit 99b7296
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const sampleCollection = [
{
title: 'buttons',
showCode: false,
code: `<a class="nes-btn">Normal</a>
code: `<a class="nes-btn" href="#">Normal</a>
<button type="button" class="nes-btn is-primary">Primary</button>
<button type="button" class="nes-btn is-success">Success</button>
Expand Down
7 changes: 5 additions & 2 deletions scss/elements/buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
box-shadow: inset -4px -4px $shadow;
}

&:hover,
&:focus {
&:hover {
color: inherit;
text-decoration: none;
background-color: $hover-background;
Expand All @@ -23,6 +22,10 @@
}
}

&:focus {
box-shadow: 0 0 0 6px rgba($shadow, 0.3);
}

&:active:not(.is-disabled)::after {
box-shadow: inset 4px 4px $shadow;
}
Expand Down

0 comments on commit 99b7296

Please sign in to comment.