File tree Expand file tree Collapse file tree 2 files changed +7
-16
lines changed
modules/IDE/components/Searchbar Expand file tree Collapse file tree 2 files changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,9 @@ class Searchbar extends React.Component {
44
44
const { searchValue } = this . state ;
45
45
return (
46
46
< div className = { `searchbar ${ searchValue === '' ? 'searchbar--is-empty' : '' } ` } >
47
- < button
48
- type = "submit"
49
- className = "searchbar__button"
50
- onClick = { this . handleSearchEnter }
51
- >
47
+ < div className = "searchbar__button" >
52
48
< InlineSVG className = "searchbar__icon" src = { searchIcon } />
53
- </ button >
49
+ </ div >
54
50
< input
55
51
className = "searchbar__input"
56
52
type = "text"
Original file line number Diff line number Diff line change 15
15
}
16
16
}
17
17
18
- button [ type = " submit " ] .searchbar__button {
18
+ div .searchbar__button {
19
19
background-color : unset ;
20
20
width : #{31 / $base-font-size } rem;
21
21
height : #{36 / $base-font-size } rem;
22
22
position : absolute ;
23
+ display : flex ;
24
+ justify-content : center ;
25
+ align-items : center ;
23
26
padding : 0 ;
24
27
border : 0 ;
25
28
border-right : solid 1px ;
26
29
@include themify () {
27
30
border-right-color : getThemifyVariable (' input-border-color' );
28
31
}
29
- & :enabled:hover {
30
- background-color : unset ;
31
- @include themify () {
32
- border-right-color : getThemifyVariable (' input-border-color' );
33
- }
34
- & g {
35
- fill : unset ;
36
- }
37
- }
38
32
}
39
33
40
34
.searchbar__icon {
@@ -43,6 +37,7 @@ button[type="submit"].searchbar__button {
43
37
width : #{22 / $base-font-size } rem;
44
38
height : #{27 / $base-font-size } rem;
45
39
transform : scaleX (-1 );
40
+ padding-top : #{3 / $base-font-size } rem;
46
41
@include themify () {
47
42
fill : getThemifyVariable (' input-text-color' );
48
43
}
You can’t perform that action at this time.
0 commit comments