BaseIcon: p-icon
and p-icon-spin
classes in unstyled mode
#4692
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
Describe the bug
The
<svg>
element of theBaseIcon
component has the CSS classesp-icon
andp-icon-spin
, even though PrimeVue is used in unstyled mode. As far as I can see, the CSS classes are specified here (BaseIcon.vue) regardless of whether the unstyled mode is enabled or not.Reproducer
https://codesandbox.io/p/sandbox/unruffled-chihiro-9yx5y3?file=%2Fsrc%2FApp.vue%3A21%2C9-21%2C26
PrimeVue version
3.37.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
I noticed this bug in the loading overlay of the
DataTable
component as can be seen in the reproducer above. I had accidentally defined a style for.p-icon
globally which had an effect on the loading icon.Expected behavior
The
BaseIcon
should not have the classesp-icon
andp-icon-spin
in unstyled mode.The text was updated successfully, but these errors were encountered: