Skip to content

Commit e2c6d10

Browse files
authored
Merge pull request #301 from dwisatriow/main
Align search icon position
2 parents 89f716b + 409e376 commit e2c6d10

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/components/SearchBar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const SearchBar = ({ className }) => {
4444
})}
4545
/>
4646
<button className={css.submit} onClick={search}>
47-
<SearchIcon height={30} width={30} className={css.searchIcon} />
47+
<SearchIcon height={30} width={30} />
4848
</button>
4949
</div>
5050
</div>

src/components/SearchBar.module.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
flex-direction: row;
3131
flex-basis: var(--col6);
3232
justify-content: flex-end;
33+
align-items: center;
3334
}
3435
.submit {
3536
position: absolute;
@@ -50,10 +51,6 @@
5051
}
5152
}
5253

53-
.searchIcon {
54-
margin-top: -2px;
55-
}
56-
5754
@media (--reduced) {
5855
.root {
5956
align-self: baseline;

0 commit comments

Comments
 (0)