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

PassThrough: does not override native styles #6246

Closed
quantumwebco opened this issue Aug 18, 2024 · 3 comments
Closed

PassThrough: does not override native styles #6246

quantumwebco opened this issue Aug 18, 2024 · 3 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@quantumwebco
Copy link

Describe the bug

When adding passthrough globally it doesn't override the native styles. If you set cssLayer option to true it overrides some styles but others are completely lost

How can I have the native styles with primevue but override some with tailwindcss

This used to be easy in primevue 3 by using css layers but it no longer seems to work in 4

Reproducer

https://stackblitz.com/edit/primevue-4-ts-vite-issue-template-8whkyh?file=src%2FApp.vue,src%2Fmain.ts,src%2Fassets%2Fmain.css

PrimeVue version

4.0.4

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

Please see https://stackblitz.com/edit/primevue-4-ts-vite-issue-template-8whkyh?file=src%2FApp.vue,src%2Fmain.ts,src%2Fassets%2Fmain.css

Expected behavior

Passthrough should override the styles from primevue

@quantumwebco quantumwebco added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Aug 18, 2024
@quantumwebco
Copy link
Author

This also affects adding classes to elements directly
image
image

@tugcekucukoglu
Copy link
Member

We could suggest using ! prefix for tailwind classes.

Thank you.

@quantumwebco
Copy link
Author

quantumwebco commented Aug 21, 2024

@tugcekucukoglu That doesn't work.

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

2 participants