Skip to content

Commit b5b563c

Browse files
committed
Updated Search UI
1 parent e02bf71 commit b5b563c

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

src/assets/scss/components/search.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
.search-controls {
2+
.btn-search {
3+
padding: 4px 14px;
4+
5+
.eos-icons {
6+
margin: 0px;
7+
}
8+
}
9+
}
10+
111
.search-input {
2-
border: 0;
312
border-bottom: 2px solid $dark-color;
4-
border-radius: 0;
5-
justify-content: space-between;
6-
outline: none;
7-
padding: 0px 10px;
8-
padding-left: 0px;
913
position: relative;
1014

1115
.dropdown-container {
@@ -29,10 +33,6 @@
2933
}
3034
}
3135

32-
.search {
33-
margin: 0.5rem;
34-
}
35-
3636
.user-suggest-dropdown {
3737
background-color: $eos-white;
3838
border-radius: 10px 0px 10px 10px;

src/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"apiURL": "https://userstory-strapi.herokuapp.com",
2+
"apiURL": "http://localhost:1337",
33
"APP_ENV": "dev"
44
}

src/modules/SearchInput.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ function SearchInput(props) {
3131
return (
3232
<div className='flex flex-row search-controls'>
3333
<div className='flex flex-row search-input' data-cy='search-input-div'>
34-
<span>
35-
<i className='eos-icons'>search</i>
36-
</span>
3734
{
3835
<UsersSuggestionDropdown
3936
isOpen={usersSuggestionOpen}
@@ -98,11 +95,11 @@ function SearchInput(props) {
9895
</div>
9996
<Button
10097
type='submit'
101-
className='btn btn-default'
98+
className='btn btn-default btn-search'
10299
data-cy='btn-search'
103100
onClick={handleSearchSubmit}
104101
>
105-
Search
102+
<i className='eos-icons'>search</i>
106103
</Button>
107104
</div>
108105
)

0 commit comments

Comments
 (0)