File tree Expand file tree Collapse file tree 2 files changed +25
-8
lines changed Expand file tree Collapse file tree 2 files changed +25
-8
lines changed Original file line number Diff line number Diff line change 4
4
5
5
@use " ../../styles/tools/form-fields/box-field-elements" ;
6
6
@use " ../../styles/tools/form-fields/box-field-layout" ;
7
+ @use " ../../styles/tools/form-fields/box-field-sizes" ;
7
8
@use " ../../styles/tools/form-fields/foundation" ;
8
9
@use " ../../styles/tools/form-fields/variants" ;
9
10
@use " ../../styles/tools/accessibility" ;
65
66
.isRootInFormLayout {
66
67
@include box-field-layout .in-form-layout ();
67
68
}
69
+
70
+ // Sizes
71
+ .isRootSizeSmall {
72
+ @include box-field-sizes .size (small , $has-input : false);
73
+ }
74
+
75
+ .isRootSizeMedium {
76
+ @include box-field-sizes .size (medium , $has-input : false);
77
+ }
78
+
79
+ .isRootSizeLarge {
80
+ @include box-field-sizes .size (large , $has-input : false);
81
+ }
Original file line number Diff line number Diff line change 1
1
@use " sass:map" ;
2
2
@use " ../../theme/form-fields" as theme ;
3
3
4
- @mixin size ($size , $is-multiline : false) {
4
+ @mixin size ($size , $has-input : true, $ is-multiline : false) {
5
5
$size-properties : map .get (theme .$box-sizes , $size );
6
6
7
7
--rui-local-padding-y : #{map .get ($size-properties , padding-y )} ;
8
8
--rui-local-padding-x : #{map .get ($size-properties , padding-x )} ;
9
- --rui-local-font-size : #{map .get ($size-properties , font-size )} ;
10
9
11
- .input {
12
- @if $is-multiline {
13
- height : auto ;
14
- min-height : map .get ($size-properties , height );
15
- } @else {
16
- --rui-local-height : #{map .get ($size-properties , height )} ;
10
+ @if $has-input {
11
+ --rui-local-font-size : #{map .get ($size-properties , font-size )} ;
12
+
13
+ .input {
14
+ @if $is-multiline {
15
+ height : auto ;
16
+ min-height : map .get ($size-properties , height );
17
+ } @else {
18
+ --rui-local-height : #{map .get ($size-properties , height )} ;
19
+ }
17
20
}
18
21
}
19
22
}
You can’t perform that action at this time.
0 commit comments