Skip to content

Commit bc2d445

Browse files
authored
Merge pull request #30 from WildCodeSchool-2024-09/fix-dropdown-menu-css
Fix dropdown menu css
2 parents da07652 + 533fba4 commit bc2d445

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

client/src/App.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88

99
:root {
1010
--bgColor: #0d0d0d;
11+
--bgColorDarkRed: #7f1000;
12+
--bgColorWhite: #f2f2f2;
1113
--titleColor: #ed0000;
14+
--titleColorDark: #f23005;
1215
--bgRedColor: #7f1000;
1316
--textColorWhite: #fffef8;
1417
--titleFont: "Bagel Fat One";

client/src/components/Header/Searchbar/SearchBar.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
form {
2+
padding: 0.5rem;
3+
grid-area: 3 / 1 / 4 / 4;
4+
text-align: center;
5+
}
6+
17
.searchbar-container {
28
position: relative;
39
display: flex;
@@ -42,6 +48,12 @@ button.search-button {
4248
margin-left: 1rem;
4349
}
4450

51+
button.search-button:hover {
52+
background-color: var(--titleColorDark);
53+
cursor: pointer;
54+
transition: 0.1s ease;
55+
}
56+
4557
.dropdown-menu {
4658
position: absolute;
4759
top: calc(100%);
@@ -115,6 +127,10 @@ button.search-button {
115127
}
116128

117129
@media screen and (min-width: 768px) {
130+
form {
131+
grid-area: 2 / 2 / 3 / 3;
132+
width: max-content;
133+
}
118134
input.search-input {
119135
width: 18rem;
120136
height: 2rem;

client/src/components/Header/Searchbar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function Searchbar() {
5656
onClick={handleSubmit}
5757
aria-label="Valider la recherche"
5858
>
59-
Valider
59+
Recherche
6060
</button>
6161
</div>
6262

0 commit comments

Comments
 (0)