Skip to content

Commit

Permalink
fix(component): switch slider width shift when move.
Browse files Browse the repository at this point in the history
  • Loading branch information
riccox committed Feb 9, 2023
1 parent 5a6803f commit b3b3468
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/tailwind/src/style/components/switch.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@
.switch::after {
--tw-bg-opacity: 1;
background-color: rgba(var(--sira-colors-bw-500), var(--tw-bg-opacity));
@apply leading-none absolute rounded-full;
@apply leading-none absolute rounded-full transition-all duration-300;
top: var(--sira-switch-padding);
height: calc(100% - calc(var(--sira-switch-padding) * 2));
width: calc(calc(100% - calc(var(--sira-switch-padding) * 2)) / 2);
transition: 0.4s;
content: '';
/* for custom text content */
@apply flex justify-center items-center text-sm overflow-hidden;
Expand Down

1 comment on commit b3b3468

@vercel
Copy link

@vercel vercel bot commented on b3b3468 Feb 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sira – ./

sira.riccox.com
sira-riccox.vercel.app
sira.vercel.app
sira-git-main-riccox.vercel.app

Please sign in to comment.