-
Notifications
You must be signed in to change notification settings - Fork 645
Flash refresh + Refactor #777
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
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/primer/primer-components/i48ku2tlj |
auareyou
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.
Values look good! 👍
BinaryMuse
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. Do you mind adding a migration strategy to the release notes?
|
Is the border-radius of the flash container supposed to be bigger now? It looks the same in the before and after screenshots. |
|
Nice catch @colebemis 🤦♀️ 😂 Done @BinaryMuse ! |
|
@emplums 🤔🤔🤔 worth using the new deprecation stuff for? (keep |
|
@BinaryMuse yeah good idea! i'll add the deprecation stuff to this PR. |
|
Note: @BinaryMuse is going to add a conditional to |
|
@BinaryMuse I think the yarn.lock file in the 19.0.0 branch might be corrupted or something, because I have no changes to package.json in this branch and after merging in the release branch running |
Hm, I pulled the release branch and ran |
This PR updates the Flash component with the new refresh styles ✨
I've also taken this opportunity to refactor a bit. We were previously using the
schemeprop when we really should have been usingvariant. Sadly, this creates a breaking change but I believe it's worth it to get close to consistency. We were also naming our "schemes" based on colors, when really they should be named to describe the type of Flash (success, warning, danger, default) to aid the user in knowing which variant to use for which purpose.These new updates also include default styling for icons included in Flash alerts - just like in Primer CSS, we set the color of any icon included in a flash alert to match the variant styling.
Screenshots
Before:
After:
( I removed the margin between the components to make the code more copy-able, but i'm not 100% attached to this change)

Merge checklist
index.d.ts) if necessaryTake a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.