1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

fix(ui/box-selectors): make multi use square [EE-3856] (#8470)

This commit is contained in:
Chaim Lev-Ari 2023-02-27 12:47:29 +02:00 committed by GitHub
parent e0481f69b1
commit 69a91ff90a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 37 additions and 46 deletions

View file

@ -51,10 +51,14 @@ export function BoxOption<T extends Value>({
{!disabled && (
<div
className={clsx(
'absolute top-4 right-4 flex h-4 w-4 items-center justify-center rounded-full border border-solid border-blue-8 font-bold text-white',
'absolute top-4 right-4 flex h-4 w-4 items-center justify-center border border-solid font-bold text-white',
{
'bg-white': !selected,
'bg-blue-8': selected,
'border-gray-6 bg-white': !selected,
'border-blue-8 bg-blue-8': selected,
},
{
'rounded-full': type === 'radio',
'rounded-sm': type === 'checkbox',
}
)}
>