File tree Expand file tree Collapse file tree 5 files changed +7
-11
lines changed
packages/react-components/src/components Expand file tree Collapse file tree 5 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 1
1
.bcds-react-aria-Select {
2
2
display : flex;
3
3
flex-direction : column;
4
- gap : var (--layout-margin-small );
5
4
align-items : flex-start;
6
5
/* Hacks for `stretch`: https://caniuse.com/mdn-css_properties_max-width_stretch */
7
6
max-width : -moz-available;
12
11
.bcds-react-aria-Select--Label {
13
12
color : var (--typography-color-secondary );
14
13
font : var (--typography-regular-small-body );
14
+ padding : var (--layout-padding-xsmall ) var (--layout-padding-none );
15
15
}
16
16
.bcds-react-aria-Select [data-disabled ] > .bcds-react-aria-Select--Label {
17
17
color : var (--typography-color-disabled );
Original file line number Diff line number Diff line change 7
7
.bcds-react-aria-TagGroup--Text-description ,
8
8
.bcds-react-aria-TagGroup--Text-error {
9
9
display : block;
10
- margin : var (--layout-margin-small ) var (--layout-margin -none );
10
+ padding : var (--layout-padding-xsmall ) var (--layout-padding -none );
11
11
}
12
12
13
13
.bcds-react-aria-TagGroup--Text-error {
Original file line number Diff line number Diff line change 11
11
.bcds-react-aria-TextArea--Label {
12
12
font : var (--typography-regular-small-body );
13
13
color : var (--typography-color-primary );
14
- }
15
-
16
- .bcds-react-aria-TextArea--Label > .required {
17
- color : var (--typography-color-secondary );
18
- padding : var (--layout-padding-none ) var (--layout-padding-xsmall );
14
+ padding : var (--layout-padding-xsmall ) var (--layout-padding-none );
19
15
}
20
16
21
17
/* Styles for the description and character count slot below the input field */
22
18
.bcds-react-aria-TextArea--Description {
23
19
display : grid;
24
20
gap : var (--layout-margin-medium );
21
+ padding : var (--layout-padding-xsmall ) var (--layout-padding-none );
25
22
font : var (--typography-regular-small-body );
26
23
color : var (--typography-color-secondary );
27
24
}
51
48
var (--surface-color-border-default );
52
49
border-radius : var (--layout-border-radius-medium );
53
50
padding : var (--layout-padding-small ) 12px ;
54
- margin : var (--layout-margin-small ) var (--layout-margin-none );
55
51
}
56
52
57
53
/* Text input field */
Original file line number Diff line number Diff line change @@ -44,8 +44,7 @@ export default function TextArea({
44
44
< >
45
45
{ label && (
46
46
< Label className = "bcds-react-aria-TextArea--Label" >
47
- { label }
48
- { isRequired && < span className = "required" > (required)</ span > }
47
+ { isRequired ? `${ label } (required)` : label }
49
48
</ Label >
50
49
) }
51
50
< div className = "bcds-react-aria-TextArea--Container" >
Original file line number Diff line number Diff line change 11
11
.bcds-react-aria-TextField--Label {
12
12
font : var (--typography-regular-small-body );
13
13
color : var (--typography-color-primary );
14
+ padding : var (--layout-padding-xsmall ) var (--layout-padding-none );
14
15
}
15
16
16
17
.bcds-react-aria-TextField--Label .required {
22
23
.bcds-react-aria-TextField--Description {
23
24
font : var (--typography-regular-small-body );
24
25
color : var (--typography-color-secondary );
26
+ padding : var (--layout-padding-xsmall ) var (--layout-padding-none );
25
27
}
26
28
27
29
/* Styles for the input field container */
36
38
border : var (--layout-border-width-small ) solid
37
39
var (--surface-color-border-default );
38
40
border-radius : var (--layout-border-radius-medium );
39
- margin : var (--layout-margin-small ) var (--layout-margin-none );
40
41
padding : var (--layout-padding-small ) 12px ;
41
42
}
42
43
You can’t perform that action at this time.
0 commit comments