Skip to content

Commit

Permalink
fix(buttons): prevent focus state from overriding active state; only …
Browse files Browse the repository at this point in the history
…applies to .active class
  • Loading branch information
ffoodd committed Oct 30, 2019
1 parent 88551f0 commit 1e1fa74
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scss/mixins/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,18 @@
background-image: none; // Remove the gradient for the pressed/active state
}
border-color: $active-border;
}

// Boosted mod: ensure focus visibility on active state
&:not(:disabled):not(.disabled).active {
&:focus,
&.focus {
// Boosted mod: remove box-shadow
color: color-yiq($hover-background);
@include gradient-bg($hover-background);
border-color: $hover-border;
// end mod
}
}
// end mod
}

// Boosted mod: button-outline not allowed by Orange brand's buttons stencil
Expand Down

0 comments on commit 1e1fa74

Please sign in to comment.