Skip to content

Commit

Permalink
Add hover color for buttons (#270)
Browse files Browse the repository at this point in the history
We already had this for the zoom controls. Now the map layer and the
scorecard accordion have it.
  • Loading branch information
Eric-Arellano authored Aug 19, 2024
1 parent bfb791d commit 1622c3b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/css/_controls.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,8 @@ $zoom-controls-top-offset: calc(
margin: 0;
vertical-align: middle;
}

&:hover {
background-color: colors.$hover;
}
}
4 changes: 4 additions & 0 deletions src/css/_scorecard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@
border-bottom-left-radius: borders.$border-radius;
border-bottom-right-radius: borders.$border-radius;

&:hover {
background-color: colors.$hover;
}

.scorecard-accordion-title {
flex: 1;
}
Expand Down
1 change: 1 addition & 0 deletions src/css/theme/_colors.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
$teal: hsl(173, 72%, 46%);
$white: hsl(0, 0%, 100%);
$hover: hsl(0, 0%, 96%);
$black: hsl(0, 0%, 0%);
$gray: hsl(0, 0%, 25.88%); // Color comes from the logo
$black-translucent: hsla(0, 0%, 0%, 0.4);

0 comments on commit 1622c3b

Please sign in to comment.