Skip to content

Commit

Permalink
Adjust icon placement
Browse files Browse the repository at this point in the history
Adjust icon placement per feedback in
#6130 (review).
  • Loading branch information
robertknight committed Jan 23, 2024
1 parent df69b8d commit 63033b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sidebar/components/search/SearchField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default function SearchField({
<IconButton
// Vertically center icon on left side of input. Increase the text
// size to make the icon the same size as the top bar icons.
classes="absolute left-1 text-[16px] top-[50%] translate-y-[-50%]"
classes="absolute left-0 text-[16px] top-[50%] translate-y-[-50%]"
icon={SearchIcon}
size="lg"
title="Search"
Expand All @@ -100,7 +100,7 @@ export default function SearchField({
<Input
aria-label="Search annotations"
classes={classnames(
'pl-9 pr-9', // Add padding so input does not overlap search/clear buttons.
'pl-8 pr-8', // Add padding so input does not overlap search/clear buttons.
'disabled:text-grey-6', // Dim text when input is disabled
)}
data-testid="search-input"
Expand All @@ -117,7 +117,7 @@ export default function SearchField({
/>
{pendingQuery && (
<IconButton
classes="absolute right-1 text-[16px] top-[50%] translate-y-[-50%]"
classes="absolute right-0 text-[16px] top-[50%] translate-y-[-50%]"
size="lg"
icon={CancelIcon}
data-testid="clear-button"
Expand Down

0 comments on commit 63033b1

Please sign in to comment.