Skip to content

Commit

Permalink
fix(packages-type): fix custom properties breakpoint (#8763)
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Strubberg <sstrubberg@protonmail.com>
  • Loading branch information
andreancardona and sstrubberg authored May 26, 2021
1 parent 586f1bb commit 1014e32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/type/scss/_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -729,13 +729,14 @@ $custom-property-prefix: 'cds' !default;

// If $fluid is set to true and the token has breakpoints defined for fluid
// styles, delegate to the fluid-type helper for the given token
// Otherwise remove token breakpoints
@if $fluid == true and map-has-key($token, 'breakpoints') {
@include fluid-type($token, $breakpoints);
} @else {
@if global-variable-exists('feature-flags') and
map-get($feature-flags, 'enable-css-custom-properties')
{
@include custom-properties($name, $token);
@include custom-properties($name, map-remove($token, 'breakpoints'));
} @else {
// Otherwise, we just include all the property declarations directly on the
// selector
Expand Down

0 comments on commit 1014e32

Please sign in to comment.