Variant for slot doesn't work #44272
Labels
customization: theme
Centered around the theming features
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Search keywords
variants, slots, props, evaluation
Latest version
Steps to reproduce
Link to live example: https://stackblitz.com/edit/github-nynfvf?file=src%2Fthene.ts
Steps:
components
=>MuiSelect
=>styleOverrides
root
andicon
slots, both with props:props: { size: 'small' }
Current behavior
Variant for root is recognized and applied, for icon - it's not
Expected behavior
As far as I understand, also a variant for a slot should work.
Context
I tried for the
icon
a hardcoded props evaluation:and it works. I also debugged
size
prop evaluation with:and initially it has correct value
small
but immediately during next evaluation it'sundefined
What's surprising for me, it behaves exactly the same forroot
, but doesn't break variant's styling forroot
🤔Your environment
No response
The text was updated successfully, but these errors were encountered: