fix multi select styling

This commit is contained in:
saml33 2022-03-29 11:09:34 +11:00
parent 010f6a24b3
commit 202276b396
2 changed files with 7 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import React from 'react'
import { CheckIcon } from '@heroicons/react/solid'
const Checkbox = ({ checked, children, disabled = false, ...props }) => (
<label className="flex cursor-pointer items-center text-th-fgd-3">
<label className="default-transition flex cursor-pointer items-center text-th-fgd-3 hover:text-th-fgd-2">
<input
checked={checked}
{...props}
@ -32,7 +32,11 @@ const Checkbox = ({ checked, children, disabled = false, ...props }) => (
}`}
/>
</div>
<span className="ml-2 text-xs">{children}</span>
<span
className={`ml-2 text-xs ${checked && !disabled ? 'text-th-fgd-2' : ''}`}
>
{children}
</span>
</label>
)

View File

@ -343,7 +343,7 @@ const MultiSelectDropdown = ({ options, selected, toggleOption }) => {
leaveTo="opacity-0"
>
<Popover.Panel className="absolute top-12 z-10 h-72 w-full overflow-y-auto">
<div className="relative rounded-md bg-th-bkg-3 p-2">
<div className="relative space-y-2.5 rounded-md bg-th-bkg-3 p-3">
{options.map((option) => {
const isSelected = selected.includes(option.name)
return (