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

Form components :disabled styles not working with Material Theme and inputVariant: "filled" #51

Open
adamshafer opened this issue Mar 5, 2025 · 0 comments

Comments

@adamshafer
Copy link

Hello. We are working on transitioning our project from PrimeVue v3 to PrimeVue v4. We are looking to use the Material theme with inputVariant: "filled" to mostly mimic the custom styles from our v3 project. I noticed that the disabled fields do not have a different background color, and are not styled to look disabled. This problem only seems to happen with the Material theme, and looks fine with Aura/Nora/etc.

Example:
https://stackblitz.com/edit/pet94w8j

It looks like the issue here is that the background CSS for .p-inputtext.p-variant-filled is being applied, when it should be applying the .p-inputtext-disabled style:

Image

This is not specific to the InputText component, and appears to be an issue on all disabled form components (except maybe Checkbox).

Any assistance here is appreciated, and let me know if this belongs in the PrimeVue repo. I believe this is a primeuix issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant