documentation: preset theming and css() function positioning within the theme declaration is wrong #6790
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
There is a documented example to inject css when using the Primevue v4 preset.
The documentation example does not work, and I suspect that there is an error in the documentation.
The position of the css property seems wrong in the example.
On the other hand, when i place the css property within the
tag
orbutton
object itself, it worksThe css property has to be within the component itself.- material theme working example at an atomic component preset level.
On the root position of the theme object it seems to work, see material theme root declaration. But it's empty so it's unclear.
Reproduction
a simple reproduction
Proposition
Reproducer
primevue/packages/themes/src/presets/material/index.js
Line 185 in aec47f4
PrimeVue version
4.2.2
Vue version
4.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
The text was updated successfully, but these errors were encountered: