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 hover effects on sidebar elements #202

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion frontend/src/components/FilterButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function FilterButton({
<input
id="checkbox"
type="checkbox"
className="appearance-none border flex items-center border-primary_default m-[1px] mr-2 h-4 w-4 rounded-sm hover:bg-primary_l2 hover:border-primary_l2 checked:bg-primary_default"
className="appearance-none border flex items-center border-primary_default border-opacity-50 m-[1px] mr-2 h-4 w-4 rounded-sm hover:bg-primary_default hover:bg-opacity-10 hover:border-primary_default checked:bg-primary_default"
checked={checked}
disabled={!enabled}
readOnly
Expand Down
9 changes: 8 additions & 1 deletion frontend/src/components/SearchBarComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,17 @@ export default function SearchBarComponent() {
return (
<div className="flex flex-col gap-2">
<p className="body-small">Søk</p>
<div className="flex flex-row gap-2 rounded-lg border border-primary_l1 px-3 py-2 w-max">
<div
className={`flex flex-row gap-2 rounded-lg border px-3 py-2 w-max hover:bg-primary_l4 hover:border-primary_default ${
document.activeElement?.id === "consultantSearch"
? "border-primary_default"
: "border-primary_l1"
} `}
>
<Search className="text-primary_default h-4 w-4" />
<input
placeholder="Søk etter konsulent"
id="consultantSearch"
className="input w-[131px] focus:outline-none body-small "
onChange={(e) => setNameSearch(e.target.value)}
ref={inputRef}
Expand Down
Loading