[Tooltip] className not applied from PopperProps #28991
Labels
bug 🐛
Something doesn't work
component: tooltip
This is the name of the generic UI component, not the React module!
After migrating to MUI v5.0.3, our styles are not applied anymore when using
PopperProps
from the Tooltip component.I saw that a new prop
componentsProps
was introduced in #28692. Our styles seem working fine when using this prop but TypeScript is now asking for all the popper props to be defined.Current Behavior 😯
Either
className
is not applied when usingPopperProps
or either TypeScript is yelling when assigning only theclassName
tocomponentsProps.popper
.Expected Behavior 🤔
Either
className
should be allowed to be passed toPopperProps
or either TypeScript should allow to assign a partial PopperProps tocomponentsProps.popper
.Steps to Reproduce 🕹
https://codesandbox.io/s/popperprops-issue-zudz4?file=/src/App.tsx
Context 🔦
I am trying to use CSS modules to style the tooltip component.
Your Environment 🌎
`npx @mui/envinfo`
The text was updated successfully, but these errors were encountered: