Skip to content

Commit 5907c21

Browse files
feat(checkbox): add tick-width property to the theme (#485)
* feat(checkbox): add tick-width property * feat(checkbox): update fluent tick width * fix(checkbox): set the corrent width number in the documentation --------- Co-authored-by: Simeon Simeonoff <sim.simeonoff@gmail.com>
1 parent 7e826a9 commit 5907c21

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

sass/themes/components/checkbox/_checkbox-theme.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
/// @param {Color} $fill-color-hover [null] - The checked border and fill colors on hover.
2626
/// @param {Color} $tick-color [null] - The checked mark color.
2727
/// @param {Color} $tick-color-hover [null] - The checked mark color on hover.
28+
/// @param {Number} $tick-width [null] - The checked mark width.
2829
/// @param {Color} $disabled-color [null] - The disabled border and fill colors.
2930
/// @param {Color} $disabled-tick-color [null] - The checked mark color in disabled state.
3031
/// @param {Color} $disabled-indeterminate-color [null] - The disabled border and fill colors in indeterminate state.
@@ -58,6 +59,7 @@
5859
$fill-color-hover: null,
5960
$tick-color: null,
6061
$tick-color-hover: null,
62+
$tick-width: null,
6163
$disabled-color: null,
6264
$disabled-tick-color: null,
6365
$disabled-indeterminate-color: null,
@@ -145,6 +147,7 @@
145147
fill-color-hover: $fill-color-hover,
146148
tick-color: $tick-color,
147149
tick-color-hover: $tick-color-hover,
150+
tick-width: $tick-width,
148151
disabled-color: $disabled-color,
149152
disabled-tick-color: $disabled-tick-color,
150153
disabled-indeterminate-color: $disabled-indeterminate-color,

sass/themes/schemas/components/light/_checkbox.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
/// Generates a light checkbox schema.
1313
/// @type {Map}
1414
/// @prop {Map} tick-color [color: ('gray', 50)] - The checked mark color.
15+
/// @prop {Number} tick-width [3] - The checked mark width.
1516
/// @prop {Map} label-color [color: ('gray', 900)]- The text color used for the label text.
1617
/// @prop {Map} label-color-hover [color: ('gray', 900)]- The text color used for the label text on hover.
1718
/// @prop {Color} empty-fill-color [transparent] - The unchecked fill color.
@@ -33,6 +34,7 @@ $light-checkbox: (
3334
50,
3435
),
3536
),
37+
tick-width: 3,
3638
label-color: (
3739
color: (
3840
'gray',
@@ -188,6 +190,7 @@ $material-checkbox: extend(
188190
/// Generates a fluent checkbox schema.
189191
/// @type {Map}
190192
/// @prop {Map} tick-color-hover [color: ('gray', 700)] - The checked mark color on hover when the control in unchecked.
193+
/// @prop {Number} tick-width [1.5] - The checked mark width.
191194
/// @prop {Map} empty-color [color: ('gray', 900)] - The unchecked border color.
192195
/// @prop {Map} empty-color-hover [color: ('gray', 900)] - The unchecked border color on hover.
193196
/// @prop {Map} fill-color-hover [color: ('primary', 800)] - The checked border and fill colors on hover.
@@ -205,6 +208,7 @@ $fluent-checkbox: extend(
205208
700,
206209
),
207210
),
211+
tick-width: 1.5,
208212
focus-outline-color: (
209213
color: (
210214
'gray',

0 commit comments

Comments
 (0)