Skip to content

Commit

Permalink
FXVPN-171 : Fix toggle colors and add interaction states (#72)
Browse files Browse the repository at this point in the history
Updates the background color of the toggle and adds interaction states
when the toggle is hovered and pressed.
  • Loading branch information
lesleyjanenorton authored Sep 27, 2024
1 parent b12458f commit a696384
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
22 changes: 20 additions & 2 deletions src/components/vpncard.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,30 @@ export class VPNCard extends LitElement {
height: 24px;
border-radius: 30px;
border: none;
background: #6d6d6e;
background-color: var(--color-disabled);
position: relative;
transition: background-color 0.2s ease;
}
.pill:hover {
background-color: var(--color-disabled-hover);
}
.pill:active {
background-color: var(--color-disabled-active);
}
.on .pill {
background: var(--color-enabled);
background-color: var(--color-enabled);
}
.on .pill:hover {
background-color: var(--color-enabled-hover);
}
.on .pill:active {
background-color: var(--color-enabled-active);
}
.pill::before {
content: " ";
background: white;
Expand Down
12 changes: 11 additions & 1 deletion src/ui/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,21 @@
--font-family: "Inter Regular";
--font-family-semi-bold: "Inter Semi Bold";
--font-family-bold: "Inter Bold";
--color-enabled: #3fe1b0;
--color-enabled: var(--green50);
--color-enabled-hover: var(--green60);
--color-enabled-active: var(--green70);
--color-disabled: var(--grey30);
--color-disabled-hover: var(--grey40);
--color-disabled-active: var(--grey50);
--color-warning: #ffa436;
--color-fatal-error: #ff6a75;
--color-divider: #e7e7e7;
--green50: #3fe1b0;
--green60: #3ad4b3;
--green70: #1cc4a0;
--grey30: #9e9e9e;
--grey40: #6d6d6e;
--grey50: #3d3d3d;
--main-card-background: #321c64;
--main-card-text-color: white;
--main-card--pill-background: lch(
Expand Down

0 comments on commit a696384

Please sign in to comment.