-
Notifications
You must be signed in to change notification settings - Fork 9
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
Different way of setting up modular spacing #704
Conversation
…ad of using arbituary multipliers; add helper map-deep-get function to retrieve values from nested sass maps; modular-padding mixin is a temporary one for me to test this way of retrieving spacing
@katrialesser @sherakama This is ready for the two of you to take a look when you have time. I'm not replacing the old @modular-spacing since it's used in so many places, instead, just created @modular-spacing-new which pulls from the new values. Let me know what you think. |
core/src/scss/utilities/mixins/modular-scale/_modular-spacing-new.scss
Outdated
Show resolved
Hide resolved
core/src/scss/utilities/mixins/modular-scale/_modular-spacing-new.scss
Outdated
Show resolved
Hide resolved
core/src/scss/utilities/functions/modular-scale/_get-modular-spacing-value.scss
Outdated
Show resolved
Hide resolved
core/src/scss/utilities/functions/modular-scale/_get-modular-spacing-value.scss
Outdated
Show resolved
Hide resolved
…pacing-value.scss Co-authored-by: Sherakama <[email protected]>
…pacing-value.scss Co-authored-by: Sherakama <[email protected]>
@sherakama @katrialesser Per group discussion today, I'm not replacing the current @modular-spacing mixin, instead created a new one @responsive-spacing. Since we're not replacing the old one, I'm eliminating step -3 and -4 (which we never used anyway and doesn't make much sense to me since the pixel values are basically the same for all breakpoints). No rush on this - just a FYI to take a look when you have a chance. Thanks! Adding @jenbreese as well since this affects everyone, and @kerri-augenstein to confirm the new spacing values. |
@sherakama Kerri has confirmed the spacing values. You think we could merge this in and punch a release? I could use this for the Giving site 😄 |
@yvonnetangsu I've added the deprecated notices and changed |
Awesome - thanks for the work. I'll review a bit later today. |
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.
GTG
Thanks for your work and review! Yay 🥳 |
READY FOR REVIEW
Summary
$su-responsive-spacing-map
invariables/core/_responsive-spacing.scss
@responsive-spacing
instead of replacing the old one per Decanter meeting discussion.Needed By (Date)
Urgency
Steps to Test
@include responsive-spacing('padding', 4 3 null 10);
for example to a component@include responsive-spacing('margin', 8);
for example to a componentAffected Projects or Products
Associated Issues and/or People
See Also