diff --git a/progress/internal/_circular-progress.scss b/progress/internal/_circular-progress.scss index 59b66885d..f40e49d17 100644 --- a/progress/internal/_circular-progress.scss +++ b/progress/internal/_circular-progress.scss @@ -26,6 +26,8 @@ @mixin styles() { $tokens: tokens.md-comp-circular-progress-values(); + // If changing this value, make sure to change $size-without-padding in the + // circular-progress tokens. $container-padding: 4px; // note, these value come from the m2 version but match current gm3 values. diff --git a/tokens/_md-comp-circular-progress.scss b/tokens/_md-comp-circular-progress.scss index 33f7cc048..381c305f8 100644 --- a/tokens/_md-comp-circular-progress.scss +++ b/tokens/_md-comp-circular-progress.scss @@ -52,10 +52,12 @@ $_default: ( // must be set as a raw % for compatibility between rendering border or svg. $width: map.get($tokens, 'active-indicator-width'); $size: map.get($tokens, 'size'); + $container-padding: 4px; + $size-without-padding: $size - $container-padding - $container-padding; $tokens: map.set( $tokens, 'active-indicator-width', - math.div($width, $size) * 100 + math.div($width, $size-without-padding) * 100 ); }