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
I need to build upon a external component, and I need to customzie its style. Ideally, I should wrap that external component in a customized class, but at least right now, it is impossible to change the style of its children because the classnames are automatically hashed, and does not have a static name which the external library uses.
If I were to import the .scss file in that component, next.js will alert me that I have to import global css in _app.jsx
My current solution is to add that customized style sheet to _app.jsx. It works but isn't ideal. That stylesheet is relevant to that component only, and shouldn't be considered "global"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I need to build upon a external component, and I need to customzie its style. Ideally, I should wrap that external component in a customized class, but at least right now, it is impossible to change the style of its children because the classnames are automatically hashed, and does not have a static name which the external library uses.
If I were to import the .scss file in that component, next.js will alert me that I have to import global css in _app.jsx
My current solution is to add that customized style sheet to _app.jsx. It works but isn't ideal. That stylesheet is relevant to that component only, and shouldn't be considered "global"
Beta Was this translation helpful? Give feedback.
All reactions