nextui icon indicating copy to clipboard operation
nextui copied to clipboard

[BUG] - Switch Animation In Safari

Open imchell opened this issue 2 years ago • 2 comments

Describe the bug

When trying to uncheck an animated & checked switch component, the animation looks weird.

My guess is that the left and width of StyledSwitchCircle do not update simultaneously in Safari. Similar bug also appears in some of other libs like Vuesax. If there is a animation sequence to perform width transformation first and then left transformation, like the switch in antd, maybe it can be avoided. Not sure if it's a good solution.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

Click any animated & checked switch in Safari.

Expected behavior

The animation should be fluent.

Screenshots or Videos

switch

Operating System Version

macOS

Browser

Safari

imchell avatar Jun 09 '22 02:06 imchell

A bug when shadow = {true}

shadow

imchell avatar Jun 09 '22 03:06 imchell

Hey @imchell 👋🏼, thanks for reporting it!

jrgarciadev avatar Jun 18 '22 14:06 jrgarciadev