Skip to content

Commit

Permalink
Fix the specificity issue with the focused state of color picker button
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Dec 6, 2019
1 parent 071cfe9 commit a3385dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/components/src/circular-option-picker/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ $color-palette-circle-spacing: 12px;
}

&:focus {
outline: none;
&::after {
content: "";
border: #{ $border-width * 2 } solid $dark-gray-400;
Expand All @@ -109,6 +108,12 @@ $color-palette-circle-spacing: 12px;
box-shadow: inset 0 0 0 2px $white;
}
}

&.components-button:focus {
background-color: transparent;
box-shadow: inset 0 0 0 ($color-palette-circle-size / 2);
outline: none;
}
}

.components-circular-option-picker__button-action .components-circular-option-picker__option {
Expand Down

0 comments on commit a3385dd

Please sign in to comment.