Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(material/slide-toggle): Animation duration in M3 should be 300ms #28916

Open
1 task
diesieben07 opened this issue Apr 19, 2024 · 1 comment
Open
1 task
Labels
area: material/slide-toggle M3 P2 The issue is important to a large percentage of users, with a workaround

Comments

@diesieben07
Copy link

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

The Slide toggle animation with an M3 theme uses the same duration and timing function as the M2 slide toggle. For the M3 switch this looks jarring and unfitting.

Reproduction

StackBlitz link: https://stackblitz.com/edit/stackblitz-starters-andwku?file=src%2Fmain.ts
Steps to reproduce:

  1. Look at the toggle animation
  2. Compare with the toggle animation used in Material Web: https://material-web.dev/components/switch/stories/

Expected Behavior

The slide toggle animation should not be jarring when using an M3 theme.

Actual Behavior

The slide toggle animation uses the short animation duration from M2 and appears jarring.

Environment

  • Angular: 17.3.5
  • CDK/Material: 17.3.5
@diesieben07 diesieben07 added the needs triage This issue needs to be triaged by the team label Apr 19, 2024
@crisbeto
Copy link
Member

cc @wagnermaciel

@wagnermaciel wagnermaciel changed the title bug(Slide toggle): Slide toggle animation in M3 theme does not match Material Web and looks jarring bug(material/slide-toggle): Animation duration in M3 should be 300ms Apr 19, 2024
@wagnermaciel wagnermaciel added P2 The issue is important to a large percentage of users, with a workaround area: material/slide-toggle M3 and removed needs triage This issue needs to be triaged by the team labels Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/slide-toggle M3 P2 The issue is important to a large percentage of users, with a workaround
Projects
None yet
Development

No branches or pull requests

3 participants