File tree Expand file tree Collapse file tree 2 files changed +16
-22
lines changed
src/components/Common/UI/ComboBox Expand file tree Collapse file tree 2 files changed +16
-22
lines changed Original file line number Diff line number Diff line change 7
7
color : var (--g-typography-text-color );
8
8
width : 100% ;
9
9
box-shadow : var (--g-shadow-100 );
10
-
11
- > div {
12
- position : relative ;
13
- display : flex ;
14
- align-items : center ;
15
- border : var (--g-input-borderWidth ) solid var (--g-input-borderColor );
16
- border-radius : var (--g-input-radius );
17
- background : var (--g-input-background );
18
- }
10
+ position : relative ;
11
+ display : flex ;
12
+ align-items : center ;
13
+ border : var (--g-input-borderWidth ) solid var (--g-input-borderColor );
14
+ border-radius : var (--g-input-radius );
15
+ background : var (--g-input-background );
19
16
20
17
& [data-invalid ] {
21
- > div {
22
- border-color : var (--g-colors-error-500 );
23
- }
18
+ border-color : var (--g-colors-error-500 );
24
19
}
25
20
26
21
& :focus-within {
27
22
@include formFocusOutline ($offset : calc (var (--g-input-borderWidth ) * -1 ));
28
- border-radius : var (--g-radius );
23
+ border-radius : var (--g-input-radius );
24
+
29
25
& [data-invalid ] {
30
26
@include formFocusError ($offset : calc (var (--g-input-borderWidth ) * -1 ));
31
27
}
Original file line number Diff line number Diff line change @@ -78,15 +78,13 @@ export const ComboBox = ({
78
78
selectedKey = { value ? ( value as Key ) : undefined }
79
79
name = { name }
80
80
>
81
- < div >
82
- < Input ref = { inputRef } placeholder = { placeholder } onBlur = { onBlur } { ...props } />
83
- < Button >
84
- < div aria-hidden = "true" className = { styles . icons } >
85
- { isInvalid && < AlertCircle fontSize = { 16 } /> }
86
- < CaretDown title = { t ( 'icons.selectArrow' ) } />
87
- </ div >
88
- </ Button >
89
- </ div >
81
+ < Input ref = { inputRef } placeholder = { placeholder } onBlur = { onBlur } { ...props } />
82
+ < Button >
83
+ < div aria-hidden = "true" className = { styles . icons } >
84
+ { isInvalid && < AlertCircle fontSize = { 16 } /> }
85
+ < CaretDown title = { t ( 'icons.selectArrow' ) } />
86
+ </ div >
87
+ </ Button >
90
88
91
89
< Popover
92
90
className = { classNames ( styles . popover , 'react-aria-Popover' ) }
You can’t perform that action at this time.
0 commit comments