You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, the components which are re-using other components inside (for example FileUpload, which re-uses the Button component inside), do not inherit the unstyled property, which causes that the buttons (only the upload and cancel button in this example, the choose button is not using the Button component, who knows why..) still have the p- classes (e.g.: p-componentp-button etc.)
Please check the StackBlitz example. The problem exists on all components, not only on this one.
melloware
changed the title
All components: Unstyled property does not inherit to children components when set as property
Core: Unstyled property does not inherit to children components when set as property
Mar 13, 2024
melloware
changed the title
Core: Unstyled property does not inherit to children components when set as property
Core: Unstyled property does not inherit to children
Mar 13, 2024
Describe the bug
We are using
unstyled
mode without a provider, so setting it directly on component basis, e.g.:Unfortunately, the components which are re-using other components inside (for example FileUpload, which re-uses the Button component inside), do not inherit the
unstyled
property, which causes that the buttons (only the upload and cancel button in this example, the choose button is not using the Button component, who knows why..) still have thep-
classes (e.g.:p-component
p-button
etc.)Please check the StackBlitz example. The problem exists on all components, not only on this one.
Reproducer
https://stackblitz.com/edit/rucqxs?file=src%2FApp.jsx
PrimeReact version
10.5.1
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: