Skip to content

Commit

Permalink
fix(InlineSearchInput): added padding, clear button is absolut now, h…
Browse files Browse the repository at this point in the history
…over TET-516
  • Loading branch information
adrian-potepa committed Nov 9, 2023
1 parent 0e03177 commit f6649a0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/InlineSearchInput/InlineSearchInput.styles.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { SearchInputProps } from '../SearchInput';

export const defaultConfig: SearchInputProps['custom'] = {
position: 'relative',
display: 'inline-flex',
h: '$size-small',
padding: '$space-component-padding-xSmall $space-component-padding-small',
backgroundColor: {
hover: '$color-interaction-ghost-hover',
hover: {
_: '$color-interaction-ghost-hover',
focusWithin: '$color-interaction-background-formField',
},
},
ring: {
_: 'unset',
Expand All @@ -20,8 +24,13 @@ export const defaultConfig: SearchInputProps['custom'] = {
minWidth: '50px',
backgroundColor: 'unset',
padding: 'unset',
paddingRight: '36px',
display: 'inline-block',
},
clearButton: {
position: 'absolute',
right: '$space-component-padding-small',
},
beforeComponent: {
spacing: {
Icon: {
Expand Down

0 comments on commit f6649a0

Please sign in to comment.