Skip to content

Commit

Permalink
fix(controls): Fix background color position for region toggle button (
Browse files Browse the repository at this point in the history
  • Loading branch information
jstoffan authored Jun 25, 2020
1 parent e8b3cbb commit 70747eb
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions src/lib/AnnotationControls.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,20 @@
border-left: 1px solid $twos;

.bp-AnnotationControls-regionBtn {
position: relative;
display: flex;
align-items: center;
justify-content: center;

svg {
width: 34px;
height: 32px;
padding: 4px 5px;
border-radius: 4px;
fill: $white;
}

&.is-active {
svg {
background-color: $white;
fill: $black;
}
}

&.is-active::before {
position: absolute;
z-index: -1;
width: 34px;
height: 32px;
background-color: $white;
border-radius: 4px;
content: '';
}
}

&.is-hidden {
Expand Down

0 comments on commit 70747eb

Please sign in to comment.