Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-components: update search bar button design #420

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/fresh-balloons-boil.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@giphy/react-components': minor
---

update search bar button design

- change gradient colors of search button
- reduce size of magnifying glass in search button
- remove border radius of search button on left side
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { CssVars, SearchContext } from './context'
import SearchIcon_ from './search-icon'

const time = '2s'
const purp = '#9933FF'
const purp = '#E646B6'
const pink = '#FF6666'
const strongEasing = 'cubic-bezier(0.920, 0.240, 0.185, 0.730)'

Expand Down Expand Up @@ -63,7 +63,7 @@ const GradientBox = styled.div`
height: 100%;
width: 100%;
background: linear-gradient(45deg, ${purp} 0%, ${pink} 100%);
border-radius: 4px;
border-radius: 0 4px 4px 0;
overflow: hidden;
&:before {
animation: ${gradientFade} ${time} linear 0s infinite;
Expand Down Expand Up @@ -110,8 +110,8 @@ const Scanner = styled.div`
const SearchIcon = styled(SearchIcon_)`
z-index: 1;
display: flex;
width: 60%;
height: 60%;
width: 50%;
height: 50%;
`

const SearchButton = () => {
Expand Down