-
Notifications
You must be signed in to change notification settings - Fork 480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use CSS Modules in Curriculum Catalog Card #51099
Conversation
This reverts commit a6842ab.
thanks for tackling this! it should be possible to "flatten" the styles in the .module.css file now (see 79e2f04 for example) |
Could you share the reasoning for flattening the styles? Do you mean going from something like
to something like
? I ask because I feel like the syntax of the module helps us visually decipher which styles are nested and which aren't. The I'm not an expert in this stuff, so just trying to understand the reasoning here! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this Meg 😊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after talking through it, I think the policy of whether to un-nest classnames is not worth blocking this PR -- but it'd be great if we could figure out a best practice here (possibly including allowing people to do it whichever way they want 😄 )
@davidsbailey Thanks for the thorough explanation! I'm going to merge this one, and then flatten the stylesheet in a separate PR, mostly to do more thorough comparison between the two |
Uses modules instead of a direct import for styles in the Curriculum Catalog Card.
Tested this manually in storybook:
Links
Testing story
Deployment strategy
Follow-up work
Privacy
Security
Caching
PR Checklist: