-
Notifications
You must be signed in to change notification settings - Fork 163
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
Refactor margin/gutter scss maps #4176
Conversation
…e (they use the same values)
Demo starting at https://vanilla-framework-4176.demos.haus |
scss/_settings_grid.scss
Outdated
@@ -16,13 +16,11 @@ $grid-large-col-prefix: #{$grid-column-prefix} !default; | |||
|
|||
$grid-gutter-widths: ( | |||
small: $sp-unit * 3, | |||
medium: $sp-unit * 4, | |||
large: $sp-unit * 4, |
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.
Should these be renamed to default
?
scss/_settings_grid.scss
Outdated
large: $sp-unit * 4, | ||
) !default; | ||
|
||
$grid-margin-widths: ( | ||
small: $sp-unit * 2, | ||
medium: $sp-unit * 3, | ||
large: $sp-unit * 3, |
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.
Should this be renamed to default
?
Please add this somewhere in the upgrade guide. |
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.
LGTM, thanks
Done
Replace medium with large, delete keys (they use same values so no need forseparate vars)
Fixes #3278
QA
map-get($grid-gutter-widths, medium)
remainCheck if PR is ready for release
If this PR contains Vanilla SCSS code changes, it should contain the following changes to make sure it's ready for the release:
Feature 🎁
,Breaking Change 💣
,Bug 🐛
,Documentation 📝
,Maintenance 🔨
.package.json
should be updated relative to the most recent release, following semver convention:Screenshots
[if relevant, include a screenshot or screen capture]