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

Scoped tokens: Does not seems to work like shown in the doc #6874

Open
Curs3W4ll opened this issue Nov 26, 2024 · 0 comments
Open

Scoped tokens: Does not seems to work like shown in the doc #6874

Curs3W4ll opened this issue Nov 26, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@Curs3W4ll
Copy link

Curs3W4ll commented Nov 26, 2024

Describe the bug

I tried using Scoped Tokens like shown in the doc, but it does not look like it should.
I'm starting from the Aura preset.

It seems instead being applied only to the component linked with the :dt prop, the scoped tokens applies to every component iterations.

After copying the code example from the doc, I get something looking like the following
Screenshot 2024-11-26 at 22 32 01

And here is what was expected (shown in the doc)
Screenshot 2024-11-26 at 21 33 12

Tested with Nuxt latest version.
Also tested with Vue with Vite latest version.

Reproducer

https://stackblitz.com/edit/primevue-4-ts-vite-issue-template-jk3u2x

PrimeVue version

4.2.3

Vue version

4.x

Language

TypeScript

Build / Runtime

Nuxt

Browser(s)

No response

Steps to reproduce the behavior

  1. Create a new Nuxt of Vue with Vite blank project
  2. Add PrimeVue necessary dependencies
  3. Use Aura preset for theme
  4. Add Scoped Tokens example from the doc (copy-paste code)
  5. See the custom style applied on ToggleSwitch 2 is not Scoped (also applying on ToggleSwitch 1)

Expected behavior

  1. Create a new Nuxt of Vue with Vite blank project
  2. Add PrimeVue necessary dependencies
  3. Use Aura preset for theme
  4. Add Scoped Tokens example from the doc (copy-paste code)
  5. ToggleSwitch 1 has the default style (black and white) and ToggleSwitch 2 has a custom style displaying it in amber color
@Curs3W4ll Curs3W4ll 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 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant