Skip to content

Commit

Permalink
feat: TET-854 improve search styling
Browse files Browse the repository at this point in the history
  • Loading branch information
karolinaszarek committed Jul 1, 2024
1 parent 338eca0 commit cba8325
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const defaultConfig: SearchInputProps['custom'] = {
input: {
w: 'unset',
h: 'unset',
minWidth: '50px',
minWidth: '30px',
backgroundColor: 'transparent',
padding: 0,
display: 'inline-block',
Expand Down
5 changes: 1 addition & 4 deletions src/components/TextInput/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ export const TextInput = forwardRef<
...restProps,
});

const showClearButton = !!hasClearButton && (value || innerValue);

return (
<tet.div
ref={containerRef}
Expand Down Expand Up @@ -94,9 +92,8 @@ export const TextInput = forwardRef<
ref={inputRef}
size={0}
padding={0}
w={showClearButton ? 'calc(100%-28px)' : '100%'}
/>
{showClearButton && (
{!!hasClearButton && (value || innerValue) && (
<IconButton
variant="bare"
icon="20-close"
Expand Down

0 comments on commit cba8325

Please sign in to comment.