Skip to content

Commit

Permalink
refactor(type): update sass modules to use math.div (#10591)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
joshblack and kodiakhq[bot] authored Feb 1, 2022
1 parent 6ec9188 commit 0b52454
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/type/scss/modules/_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
// stylelint-disable number-max-precision

@use 'sass:map';
@use 'sass:math';
@use '@carbon/layout';
@use 'font-family';
@use 'scale';
Expand Down Expand Up @@ -696,7 +697,7 @@ $tokens: (
/// @access public
/// @group @carbon/type
@function strip-unit($value) {
@return $value / ($value * 0 + 1);
@return math.div($value, $value * 0 + 1);
}

/// This helper includes fluid type styles for the given token value. Fluid type
Expand Down

0 comments on commit 0b52454

Please sign in to comment.