Skip to content

Commit

Permalink
fix dark mode button theming (#850)
Browse files Browse the repository at this point in the history
closes #836

---------

Co-authored-by: create-issue-branch[bot] <53036503+create-issue-branch[bot]@users.noreply.github.com>
Co-authored-by: Lois Wells <[email protected]>
Co-authored-by: Lois Wells <[email protected]>
  • Loading branch information
3 people authored Dec 21, 2023
1 parent 9c2f519 commit f3d835e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Instructions image widths (#827)
- Save status spacing (#827)
- Disappearing borders on tablet (#827)
- Dark mode button theming (#850)

## [0.20.0] - 2023-11-24

Expand Down
11 changes: 6 additions & 5 deletions src/assets/stylesheets/Button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,14 @@
}

&:hover {
color: var(--rpf-button-secondary-background-color-hover);
background-color: var(--rpf-button-secondary-background-color-hover);
color: var(--rpf-button-secondary-text-color-hover);
border-color: var(
--rpf-button-secondary-background-color-hover
--rpf-button-secondary-border-color-hover
) !important;

svg {
fill: var(--rpf-button-secondary-background-color-hover);
fill: var(--rpf-button-secondary-text-color-hover);
}
}

Expand Down Expand Up @@ -181,10 +182,10 @@
}

&:hover {
color: $rpf-grey-600;
color: var(--rpf-button-tertiary-text-color-hover);

svg {
fill: $rpf-grey-600;
fill: var(--rpf-button-tertiary-text-color-hover);
}
}
}
Expand Down
1 change: 0 additions & 1 deletion src/assets/stylesheets/ContextMenu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
@use "./rpf_design_system/colours" as *;

.context-menu__drop {
display: flex;
padding: $space-0-5 $space-1;
margin: 0;

Expand Down
9 changes: 8 additions & 1 deletion src/assets/stylesheets/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,15 @@ code {

--rpf-button-secondary-background-color: var(--rpf-teal-800);
--rpf-button-secondary-background-color-focus: $rpf-brand-raspberry; // scss var?
--rpf-button-secondary-background-color-hover: var(--rpf-grey-600);
--rpf-button-secondary-background-color-hover: var(--rpf-teal-100);
--rpf-button-secondary-border-color-hover: var(--rpf-teal-900);
--rpf-button-secondary-background-color-active: var(--rpf-teal-900);
--rpf-button-secondary-background-color-disabled: var(
--rpf-grey-50
); // might not exist
--rpf-button-secondary-text-color: var(--rpf-black);

--rpf-button-tertiary-text-color-hover: var(--rpf-grey-600);
}

.--dark {
Expand All @@ -83,9 +86,13 @@ code {
--rpf-button-secondary-background-color: var(--rpf-grey-800);
--rpf-button-secondary-background-color-active: var(--rpf-teal-200);
--rpf-button-secondary-color-disabled-background: var(--rpf-grey-700);
--rpf-button-secondary-background-color-hover: var(--rpf-grey-600);
--rpf-button-secondary-border-color-hover: var(--rpf-teal-400);
--rpf-button-secondary-color-disabled: var(--rpf-grey-100);
--rpf-button-secondary-color: var(--rpf-white);
--rpf-button-secondary-text-color: var(--rpf-white);

--rpf-button-tertiary-text-color-hover: var(--rpf-grey-200);
}
}

Expand Down

0 comments on commit f3d835e

Please sign in to comment.