[Docs] emotionCache global selector plugin affects styles #37368
Labels
bug 🐛
Something doesn't work
docs
Improvements or additions to the documentation
regression
A bug, but worse
Duplicates
Latest version
Steps to reproduce 🕹
No response
Current behavior 😯
While working with the docs, I noticed that all anchors and buttons have a box-shadow on hover. Doing some investigation I discovered that emotion custom plugin removes component class selector
&
and propagates the styles to global scope.The plugin is transforming:
into
This should be fixed, because while debugging I've observed that there are multiple styles propagating to the global scope.
Expected behavior 🤔
I expect the CSS selectors to remain unchanged.
Context 🔦
No response
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: