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
Setting classNameon a icon component overrides the default class set in the config. This is because inside the declaration the className prop is set to $defaultClass, but after that props is spread and overrides className
This is how the declaration kinda looks (got it via console.logging the component)
consticOutlineShoppingCart=({className, style, ...props})=>/* @__PURE__ */_jsxDEV("svg",{style: {color: "red"...(style||{})// might be undefined},className: "my-default-class"+" "+(className||""),// could be undefined too
...props,// ...});
The text was updated successfully, but these errors were encountered:
santiagocezar
changed the title
Merge default class when using react
Default class is not merged when using react
Jan 21, 2022
Similar to issue #53, but React not Vue.
Setting
className
on a icon component overrides the default class set in the config. This is because inside the declaration theclassName
prop is set to$defaultClass
, but after that props is spread and overrides classNameThis is how the declaration kinda looks (got it via console.logging the component)
IMO it should be something like
The text was updated successfully, but these errors were encountered: