Skip to content
New issue

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

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

Already on GitHub? # to your account

bug(slide-toggle): handle is not visible in Safari v18.3 #30487

Closed
1 task
merelrietbergen opened this issue Feb 13, 2025 · 2 comments · Fixed by #30490
Closed
1 task

bug(slide-toggle): handle is not visible in Safari v18.3 #30487

merelrietbergen opened this issue Feb 13, 2025 · 2 comments · Fixed by #30490
Assignees
Labels
area: material/slide-toggle P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@merelrietbergen
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

In Safari v18.2 the slide toggle looks like this

Image

while in Safari v18.3 it looks like this

Image

The handle is not getting colored, except when interacting with it.

Reproduction

Repro link: https://material.angular.io/components/slide-toggle/overview

Apologies that it's not a StackBlitz link, but that site seems to have it's own problems on Safari.

Expected Behavior

The handle of the slide-toggle is colored per the configured theme when not interacting with it.

Actual Behavior

The handle of the slide-toggle is not colored except when interacting with it.

Environment

  • Angular: 19.1.5
  • CDK/Material: 19.1.3
  • Browser(s): Safari 18.3
  • Operating System (e.g. Windows, macOS, Ubuntu): macOS
@merelrietbergen merelrietbergen added the needs triage This issue needs to be triaged by the team label Feb 13, 2025
@crisbeto
Copy link
Member

Interesting, I see the same issue in the docs site, but our local dev app works fine: https://ng-comp-devapp.web.app/slide-toggle. Do you see in your app?

@crisbeto crisbeto self-assigned this Feb 13, 2025
@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent and removed needs triage This issue needs to be triaged by the team labels Feb 13, 2025
crisbeto added a commit to crisbeto/material2 that referenced this issue Feb 13, 2025
Fixes a rendering issue that was causing the icon inside the slide toggle to flicker or not display at all.

Fixes angular#30487.
crisbeto added a commit that referenced this issue Feb 14, 2025
Fixes a rendering issue that was causing the icon inside the slide toggle to flicker or not display at all.

Fixes #30487.

(cherry picked from commit 657885e)
@merelrietbergen
Copy link
Author

We see it in our app on some pages, but in other places it's actually fine and I cannot understand the difference between the places where it works and the places it does not 😅 I can confirm your fix works in our app as well. Thanks @crisbeto !

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area: material/slide-toggle P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants