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
When using a framer-motion component such as motion.button, the output html element does not have the data-v-hash attribute.
Thus, the styles don't even get applied at all even after importing the stylesheet e.g. import "./button.scss"
Expected behaviour
Ideally it should have the data-v-hash attribute so that the styles get applied and are scoped only to that component as intended
Steps to reproduce
Follow the steps in this repository's instructions to use react-scoped-css.
Install framer-motion
Create a framer-motion component
Try applying a scoped file to that framer-motion component e.g. `import "./button.scss". In the dev tools you can see that the stylesheet is there but the styles are not applied as the output html element does not have the hash that the styles selectors do.
Comments
I believe this is similar to issue #52 and that this package simply does not work for 3rd party library components, it only works for normal react components.
The text was updated successfully, but these errors were encountered:
Problem
When using a framer-motion component such as motion.button, the output html element does not have the
data-v-hash
attribute.Thus, the styles don't even get applied at all even after importing the stylesheet e.g.
import "./button.scss"
Expected behaviour
Ideally it should have the
data-v-hash
attribute so that the styles get applied and are scoped only to that component as intendedSteps to reproduce
Comments
I believe this is similar to issue #52 and that this package simply does not work for 3rd party library components, it only works for normal react components.
The text was updated successfully, but these errors were encountered: