Skip to content

Commit

Permalink
Merge pull request #346 from primer/muan/details-open
Browse files Browse the repository at this point in the history
Style buttons as selected on <details open>
  • Loading branch information
shawnbot authored Sep 22, 2017
2 parents b7610f1 + af4e61b commit 27762e3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions modules/primer-support/lib/mixins/buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
}

&:active,
&.selected {
&.selected,
[open] > & {
background-color: darken(desaturate($bg, 10%), 6%);
background-image: none;
border-color: rgba($black, 0.35); // repeat to avoid shift on click-drag off of button
Expand Down Expand Up @@ -54,7 +55,8 @@
}

&:active,
&.selected {
&.selected,
[open] > & {
background-color: darken(mix($bg, $bg2, 50%), 7%);
background-image: none;
border-color: $black-fade-50; // repeat to avoid shift on click-drag off of button
Expand Down Expand Up @@ -99,7 +101,8 @@
}

&:active,
&.selected {
&.selected,
[open] > & {
color: $text-white;
background-color: darken($color, 5%);
background-image: none;
Expand Down Expand Up @@ -129,7 +132,8 @@

&:hover,
&:active,
&.selected {
&.selected,
[open] > & {
color: $bg-color;
background-color: $text-color;
background-image: none;
Expand Down

0 comments on commit 27762e3

Please sign in to comment.