Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

Commit 8b93c6a

Browse files
ref(searchbar): Add Searchbar minor adjusts (#567)
* ref(ui): Make searchbar wider * updated snaps
1 parent 1011e6d commit 8b93c6a

File tree

4 files changed

+97
-11
lines changed

4 files changed

+97
-11
lines changed

src/App/Header/Search/__snapshots__/Search.test.tsx.snap

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,23 @@ exports[`<Search /> component should load the component in default state 1`] = `
2121
content: none;
2222
}
2323
24-
.emotion-2 .MuiInputBase-input {
25-
color: #fff;
24+
.emotion-2 .MuiInputBase-root:hover:after {
25+
content: none;
26+
-webkit-transform: scaleX(1);
27+
-ms-transform: scaleX(1);
28+
transform: scaleX(1);
29+
}
30+
31+
@media screen and (min-width:768px) {
32+
.emotion-2 .MuiInputBase-root:hover:after {
33+
content: '';
34+
}
35+
}
36+
37+
@media screen and (min-width:768px) {
38+
.emotion-2 .MuiInputBase-input {
39+
color: #fff;
40+
}
2641
}
2742
2843
.emotion-0 {

src/App/Header/__snapshots__/Header.test.tsx.snap

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,23 @@ exports[`<Header /> component with logged in state should load the component in
110110
content: none;
111111
}
112112
113-
.emotion-6 .MuiInputBase-input {
114-
color: #fff;
113+
.emotion-6 .MuiInputBase-root:hover:after {
114+
content: none;
115+
-webkit-transform: scaleX(1);
116+
-ms-transform: scaleX(1);
117+
transform: scaleX(1);
118+
}
119+
120+
@media screen and (min-width:768px) {
121+
.emotion-6 .MuiInputBase-root:hover:after {
122+
content: '';
123+
}
124+
}
125+
126+
@media screen and (min-width:768px) {
127+
.emotion-6 .MuiInputBase-input {
128+
color: #fff;
129+
}
115130
}
116131
117132
.emotion-4 {
@@ -624,8 +639,23 @@ exports[`<Header /> component with logged in state should load the component in
624639
content: none;
625640
}
626641
627-
.emotion-6 .MuiInputBase-input {
628-
color: #fff;
642+
.emotion-6 .MuiInputBase-root:hover:after {
643+
content: none;
644+
-webkit-transform: scaleX(1);
645+
-ms-transform: scaleX(1);
646+
transform: scaleX(1);
647+
}
648+
649+
@media screen and (min-width:768px) {
650+
.emotion-6 .MuiInputBase-root:hover:after {
651+
content: '';
652+
}
653+
}
654+
655+
@media screen and (min-width:768px) {
656+
.emotion-6 .MuiInputBase-input {
657+
color: #fff;
658+
}
629659
}
630660
631661
.emotion-4 {

src/App/__snapshots__/App.test.tsx.snap

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,23 @@ exports[`<App /> should display the Header component 1`] = `
114114
content: none;
115115
}
116116
117-
.emotion-6 .MuiInputBase-input {
118-
color: #fff;
117+
.emotion-6 .MuiInputBase-root:hover:after {
118+
content: none;
119+
-webkit-transform: scaleX(1);
120+
-ms-transform: scaleX(1);
121+
transform: scaleX(1);
122+
}
123+
124+
@media screen and (min-width:768px) {
125+
.emotion-6 .MuiInputBase-root:hover:after {
126+
content: '';
127+
}
128+
}
129+
130+
@media screen and (min-width:768px) {
131+
.emotion-6 .MuiInputBase-input {
132+
color: #fff;
133+
}
119134
}
120135
121136
.emotion-4 {
@@ -1288,8 +1303,23 @@ exports[`<App /> should display the Loading component at the beginning 1`] = `
12881303
content: none;
12891304
}
12901305
1291-
.emotion-6 .MuiInputBase-input {
1292-
color: #fff;
1306+
.emotion-6 .MuiInputBase-root:hover:after {
1307+
content: none;
1308+
-webkit-transform: scaleX(1);
1309+
-ms-transform: scaleX(1);
1310+
transform: scaleX(1);
1311+
}
1312+
1313+
@media screen and (min-width:768px) {
1314+
.emotion-6 .MuiInputBase-root:hover:after {
1315+
content: '';
1316+
}
1317+
}
1318+
1319+
@media screen and (min-width:768px) {
1320+
.emotion-6 .MuiInputBase-input {
1321+
color: #fff;
1322+
}
12931323
}
12941324
12951325
.emotion-4 {

src/components/AutoComplete/styles.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,20 @@ export const StyledTextField = styled(TextField)<{ theme?: Theme }>(props => ({
2929
':hover:before': {
3030
content: 'none',
3131
},
32+
':hover:after': {
33+
content: 'none',
34+
transform: 'scaleX(1)',
35+
},
36+
[`@media screen and (min-width: ${props.theme?.breakPoints.medium}px)`]: {
37+
':hover:after': {
38+
content: "''",
39+
},
40+
},
3241
},
3342
'& .MuiInputBase-input': {
34-
color: props.theme && props.theme.palette.white,
43+
[`@media screen and (min-width: ${props.theme?.breakPoints.medium}px)`]: {
44+
color: props.theme && props.theme.palette.white,
45+
},
3546
},
3647
}));
3748

0 commit comments

Comments
 (0)