-
Notifications
You must be signed in to change notification settings - Fork 30
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
fix(Alert): padding issue when no dismiss button #2853
Conversation
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.
have some comments to clean up but otherwise looking great!
@dreamwasp should be fixed now, sorry about that! |
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.
✨
📬Published Alpha Packages:@codecademy/[email protected] |
🚀 Styleguide deploy preview ready! |
Overview
Added responsive right padding for Alerts where there is no close button.
Smaller fixes for other files for consistency.
PR Checklist
Testing Instructions
packages/gamut/src/Alert/Alert.tsx
packages/styleguide/stories/Molecules/Alert/index.stories.mdx
and inside anargs
setonClose: false
E.g.
^ you can also go to
.constants
and changeonClose
there too.4. Inspect the element(s) and check that the spacing(padding + column-gap) on the right-hand side is applied and that elements match the design's specs for all breakpoints
5. you may note that for the smallest breakpoint it's set to 4 (
{_:4 ...}
that's because the column-gap is 12 when there's no buttons, so both padding and column will add up to 16.6 ...
7. Done!
PR Links and Envs
(None, just Gamut)