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

ToggleSwitch: does not switch visually when selecting Material theme #6735

Closed
frozzen-git opened this issue Nov 6, 2024 · 3 comments · Fixed by #6769
Closed

ToggleSwitch: does not switch visually when selecting Material theme #6735

frozzen-git opened this issue Nov 6, 2024 · 3 comments · Fixed by #6769
Labels
design-token Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@frozzen-git
Copy link

Describe the bug

This can be seen on your site https://primevue.org/toggleswitch/.
Is it supposed to be?

Reproducer

https://primevue.org/toggleswitch/

PrimeVue version

4.2.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@frozzen-git frozzen-git added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 6, 2024
@rvdrijst
Copy link

rvdrijst commented Nov 7, 2024

I'm seeing the same thing. Both on Firefox and Chromium based (I'm on a Mac).

Other themes work fine.

Screen.Recording.2024-11-07.at.09.25.00.mov

@lan-nguyen91
Copy link

same issue for me, not showing up on Lara theme

@j0rgedev
Copy link
Contributor

Hello everyone. This issue was caused due to an inconsistency in a design token from the toggleswitch component. A workaround for this is:

const MyPreset = definePreset(Aura, {
    components: {
        toggleswitch: {
            root: {
                gap: '0px'
            }
        }
    }
});

@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working design-token and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 13, 2024
@tugcekucukoglu tugcekucukoglu added this to the 4.2.2 milestone Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design-token Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants