Skip to content

Commit

Permalink
fix(search-input): input size on hover overlapping docs button
Browse files Browse the repository at this point in the history
  • Loading branch information
RobsonOlv committed Nov 17, 2022
1 parent f27c21f commit cb11b6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/search-input/results-box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const HitsBox = connectStateResults(({ searchState, searchResults }) => {
return (
<>
{searchStateActive?.query && (
<Box sx={styles.container}>
<Box sx={styles.resultsContainer}>
<Box sx={styles.resultsBox}>
{searchResults.hits.map(
(searchResult, index) =>
Expand Down
10 changes: 5 additions & 5 deletions src/components/search-input/styles.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { SxStyleProp } from '@vtex/brand-ui'

const container: SxStyleProp = {
const resultsContainer: SxStyleProp = {
position: 'absolute',
width: '544px',
width: ['288px', '288px', '288px', '288px', '416px', '544px'],
border: '1px solid #B9B9B9',
borderRadius: '0px 0px 4px 4px',
top: 'calc(5rem - 18px)',
Expand Down Expand Up @@ -111,12 +111,12 @@ const searchContainer: SxStyleProp = {
cursor: 'pointer',
':hover': {
transition: 'all 0.3s ease-out',
width: '544px',
width: ['288px', '288px', '288px', '288px', '416px', '544px'],
border: '1px solid #3B3B3B',
},
':focus-within': {
background: '#FFFFFF',
width: '544px',
width: ['288px', '288px', '288px', '288px', '416px', '544px'],
transition: 'all 0.3s ease-out',
border: '1px solid #3B3B3B',
boxShadow: '0px 0px 0px 1px #FFFFFF, 0px 0px 0px 3px #B9B9B9',
Expand All @@ -128,7 +128,7 @@ const searchContainer: SxStyleProp = {
}

export default {
container,
resultsContainer,
resultsBox,
seeAll,
hitBox,
Expand Down

0 comments on commit cb11b6d

Please sign in to comment.