Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix placeholder overlapping in search input #7865

Merged
merged 2 commits into from
May 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading