Skip to content

Commit

Permalink
enhance: make "explore the data" button blue
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed Dec 19, 2024
1 parent 10da0a2 commit be8aa57
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
27 changes: 19 additions & 8 deletions packages/@ourworldindata/grapher/src/controls/ActionButtons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,20 @@ $paddingX: 12px; // keep in sync with PADDING_X
}
}

.ActionButton {
$light-fill: $gray-10;
$hover-fill: $gray-20;
$active-fill: $blue-20;
div.ActionButton {
--light-fill: #{$gray-10};
--hover-fill: #{$gray-20};
--active-fill: #{$blue-20};
--text-color: #{$dark-text};

&.ActionButton--exploreData {
--light-fill: #{$blue-20};
--hover-fill: #{$blue-20};
--active-fill: #{$blue-10};
--text-color: #{$blue-90};

--hover-decoration: underline;
}

height: 100%;
border-radius: 4px;
Expand All @@ -43,12 +53,12 @@ $paddingX: 12px; // keep in sync with PADDING_X
height: 100%;
width: 100%;
cursor: pointer;
color: $dark-text;
color: var(--text-color);
font-size: 13px;
font-weight: 500;
padding: 0 $paddingX;
border-radius: inherit;
background-color: $light-fill;
background-color: var(--light-fill);
position: relative;
letter-spacing: 0.01em;

Expand All @@ -62,13 +72,14 @@ $paddingX: 12px; // keep in sync with PADDING_X
}

&:hover {
background-color: $hover-fill;
background-color: var(--hover-fill);
text-decoration: var(--hover-decoration);
}

&:active,
&.active {
color: $active-text;
background-color: $active-fill;
background-color: var(--active-fill);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export class ActionButtons extends React.Component<{
{this.hasExploreTheDataButton && (
<li style={{ width: this.exploreTheDataButtonWidth }}>
<div
className="ActionButton"
className="ActionButton ActionButton--exploreData"
style={{ width: "100%" }}
>
<a
Expand Down

0 comments on commit be8aa57

Please sign in to comment.