Skip to content

Commit

Permalink
fix placeholder overlapping in search input (#7865)
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar committed May 23, 2024
1 parent a9530a9 commit cd6ce2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/Form/SearchInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ const SearchInput = ({
props.trailing ||
(!props.secondary && (
<div className="absolute inset-y-0 right-0 hidden py-1.5 pr-1.5 md:flex">
<kbd className="inline-flex items-center rounded border border-gray-200 px-2 font-sans text-sm font-medium text-gray-500">
<kbd className="inline-flex items-center rounded border border-gray-200 bg-white px-2 font-sans text-sm font-medium text-gray-500 focus:opacity-0">
{shortcutKeyIcon}
</kbd>
</div>
))
}
trailingFocused={
<div className="absolute inset-y-0 right-0 hidden gap-1 py-1.5 pr-1.5 md:flex">
<kbd className="inline-flex items-center rounded border border-gray-200 px-2 font-sans text-sm font-medium text-gray-500">
<kbd className="inline-flex items-center rounded border border-gray-200 bg-white px-2 font-sans text-sm font-medium text-gray-500">
Esc
</kbd>
</div>
Expand Down

0 comments on commit cd6ce2c

Please sign in to comment.