mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 13:46:10 +03:00
fix(circularprogress)!: make default width 4px
PiperOrigin-RevId: 562924358
This commit is contained in:
parent
58497f13b2
commit
c864d3b638
@ -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.
|
||||
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user