Skip to content

Commit

Permalink
feat(switch): fix transition timing
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-iden committed Oct 30, 2024
1 parent 30617b9 commit 2231a80
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/pharos/src/components/switch/pharos-switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
border-radius: 2rem;
background-color: var(--pharos-color-marble-gray-94);
transition:
background-color 0.3s ease-out,
border-color 0.3s ease-out,
box-shadow 0.3s ease-out;
background-color var(--pharos-transition-duration-default) ease-out,
border-color var(--pharos-transition-duration-default) ease-out,
box-shadow var(--pharos-transition-duration-default) ease-out;
position: relative;

&:hover {
Expand All @@ -36,7 +36,7 @@
width: 1rem;
background-color: var(--pharos-color-marble-gray-30);
left: 9px;
transition: 0.3s ease-out;
transition: var(--pharos-transition-duration-default) ease-out;
border-radius: 50%;
}

Expand All @@ -46,7 +46,7 @@
content: 'OFF';
position: absolute;
right: 9px;
transition: color 0.3s ease-out;
transition: color var(--pharos-transition-duration-default) ease-out;
font-size: var(--pharos-font-size-small);
}

Expand Down

0 comments on commit 2231a80

Please sign in to comment.