style: radio group

This commit is contained in:
alexsparkes
2024-06-22 10:10:17 +01:00
parent 4fdb1e5ecc
commit 5495b5c0a9
4 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@@ -5,6 +5,7 @@ node_modules/
extensions/
.idea/
dist/
build/
# Files
package-lock.json

BIN
bun.lockb Normal file → Executable file

Binary file not shown.

View File

@@ -42,6 +42,7 @@
-webkit-padding-start: 0;
padding: 0;
list-style-type: none;
margin-top: 16px;
}
.images-row {

View File

@@ -55,11 +55,11 @@ function Radio(props) {
key={option.name}
label={option.name}
value={option.value}
className="group relative flex cursor-pointer rounded-lg bg-white/5 py-4 px-5 text-white shadow-md transition focus:outline-none data-[focus]:outline-1 data-[focus]:outline-white data-[checked]:bg-white/10"
className="data-[checked]:bg-white/10 group relative flex cursor-pointer rounded-lg bg-white/5 data-[checked]:hover:bg-neutral-700 hover:bg-neutral-700 py-4 px-5 text-white shadow-md transition focus:outline-none data-[focus]:outline-1 data-[focus]:outline-white"
>
<div className="flex w-full items-center justify-between">
<div className="text-sm/6">
<p className="font-semibold text-white">{option.name}</p>
<p className="font-semibold text-white capitalize">{option.name}</p>
<div className="flex gap-2 text-white/50">
<div>{option.subname}</div>
<div aria-hidden="true">&middot;</div>