-
Notifications
You must be signed in to change notification settings - Fork 646
[Storybook] Refactor theme + prep for CSS vars #4175
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
Conversation
|
size-limit report 📦
|
…eact into prep-storybook-css-vars
.storybook/primitives-v7.css
Outdated
| @@ -1,2 +1 @@ | |||
| @import '@primer/css/dist/primitives.css'; | |||
| @import '@primer/css/dist/color-modes.css'; | |||
| @import 'https://unpkg.com/@primer/[email protected]/dist/color-modes.css'; | |||
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.
Do we need this import to unpkg because we're going to be using the newer version of primitives?
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.
I think its just easier to pull this from unpkg because its temporary and we rarely make releases in Primer CSS these days. I should probably make it @latest instead though..
joshblack
left a comment
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.
Just had a couple of comments!
Co-authored-by: Josh Black <[email protected]>
Co-authored-by: Josh Black <[email protected]>
mperrotti
left a comment
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.
Looks good to me assuming that the higher contrast "toggle overlay" button is intentional.
| // we'll sort alphabetically | ||
| const preview = { | ||
| parameters: { | ||
| actions: {argTypesRegex: '^on[A-Z].*'}, |
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.
Clever. Is this to filter out things like onClick?
preview.jsfilealltheme view CSSI ran a bunch of different test scenarios in this PR: #4172 don't be alarmed by the snapshot tests, I have resolved everything 🔥