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
Edit: I've pasted the code for the right component now.
My question is how do I do this:
// Example case; my actual case is a button
// Just easier to show what I want to do in one place
// Since I have nested components
...
<ul className={`
${styles.listDefaults}
${customStyles}
`}>
...
and have customStyles override styles.listDefaults?
I did not. It's a known issue with CSS modules and there is only a workaround, unfortunately, which is to increase the specificity of the class you wish to have priority by repeating it:
Edit: I've pasted the code for the right component now.
My question is how do I do this:
and have customStyles override styles.listDefaults?
An Icon Button component
New Tab Button (an Icon Button) component styles
The Button component
Button component styles
My Design in HTML & CSS
My result when I make the component in React
The text was updated successfully, but these errors were encountered: