Commit ee4fe43 1 parent dbf02e3 commit ee4fe43 Copy full SHA for ee4fe43
File tree 2 files changed +11
-4
lines changed
2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @digdir/designsystemet-css " : patch
3
+ ---
4
+
5
+ ** Checkbox** : Reduce border-radius by one size, making them more square.
Original file line number Diff line number Diff line change 14
14
--dsc-input-border-style : solid;
15
15
--dsc-input-border-width--toggle : max (var (--ds-border-width-default ), calc (var (--ds-size-1 ) / 2 )); /* Allow border-width to grow with font-size */
16
16
--dsc-input-border-width : var (--ds-border-width-default );
17
- /* Color */
18
- --dsc-input-color--readonly : var (--ds-color-neutral-text-subtle );
17
+ /* Color */
18
+ --dsc-input-color--readonly : var (--ds-color-neutral-text-default );
19
19
--dsc-input-color : var (--ds-color-neutral-text-default );
20
20
/* Stroke is used as the dot in radio, and checkmark in checkboxes */
21
21
--dsc-input-stroke-color : var (--ds-color-base-contrast-default );
37
37
border-width : var (--dsc-input-border-width );
38
38
border-style : var (--dsc-input-border-style );
39
39
border-color : var (--dsc-input-border-color );
40
- box-shadow : var (--dsc-input-box-shadow );
41
40
box-sizing : border-box;
42
41
color : var (--dsc-input-color );
43
42
font-family : inherit;
153
152
& [type = 'radio' ] {
154
153
border-width : var (--dsc-input-border-width--toggle );
155
154
padding : var (--_dsc-input-spacing--toggle );
156
-
157
155
flex-shrink : 0 ; /* Never shrink a toggle input */
158
156
line-height : inherit; /* Inherit line height so we can use 1lh to align with first line of label */
159
157
height : var (--dsc-input-size--toggle );
186
184
}
187
185
}
188
186
187
+ & [type = 'checkbox' ] {
188
+ border-radius : var (--ds-border-radius-sm );
189
+ }
190
+
189
191
& [type = 'checkbox' ]: checked {
190
192
background-origin : content-box;
191
193
background-repeat : no-repeat;
You can’t perform that action at this time.
0 commit comments