Skip to content

Commit dc74aa3

Browse files
authored
feat(material/checkbox): use -size for legacy checkbox (#25424)
1 parent e8e7199 commit dc74aa3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/material/legacy-checkbox/checkbox.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $_ripple-radius: 20px;
1919
$_item-spacing: variables.$toggle-padding;
2020

2121
// The width of the line used to draw the checkmark / mixedmark.
22-
$_mark-stroke-size: math.div(2, 15) * checkbox-common.$size !default;
22+
$_mark-stroke-size: math.div(2, 15) * checkbox-common.$legacy-size !default;
2323

2424

2525
// Fades in the background of the checkbox when it goes from unchecked -> {checked,indeterminate}.
@@ -232,15 +232,15 @@ $_mark-stroke-size: math.div(2, 15) * checkbox-common.$size !default;
232232

233233
.mat-checkbox-inner-container {
234234
display: inline-block;
235-
height: checkbox-common.$size;
235+
height: checkbox-common.$legacy-size;
236236
line-height: 0;
237237
margin: auto;
238238
margin-right: $_item-spacing;
239239
order: 0;
240240
position: relative;
241241
vertical-align: middle;
242242
white-space: nowrap;
243-
width: checkbox-common.$size;
243+
width: checkbox-common.$legacy-size;
244244
flex-shrink: 0;
245245

246246
[dir='rtl'] & {

0 commit comments

Comments
 (0)