Skip to content

Commit

Permalink
Fix: Switch button component colors to be supported on any browsers.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRasho committed Nov 8, 2023
1 parent 6ab432d commit 3f66d87
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/components/atoms/switchButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ watch(
linear,
left top,
right top,
color-stop(50%, var(--outline)),
color-stop(50%, var(--background))
color-stop(50%, var(--background)),
color-stop(50%, var(--primary))
)
no-repeat;
background: -o-linear-gradient(
left,
var(--outline) 50%,
var(--background) 50%
var(--background) 50%,
var(--primary) 50%
)
no-repeat;
background: linear-gradient(
Expand Down Expand Up @@ -151,7 +151,11 @@ watch(
color-stop(50%, var(--primary))
)
no-repeat;
background: -o-linear-gradient(left, var(--outline) 50%, var(--primary) 50%)
background: -o-linear-gradient(
left,
var(--background) 50%,
var(--primary) 50%
)
no-repeat;
background: linear-gradient(
to right,
Expand Down

0 comments on commit 3f66d87

Please sign in to comment.