diff --git a/PROGRESS.md b/PROGRESS.md index 94d8767..b7fdaa1 100644 --- a/PROGRESS.md +++ b/PROGRESS.md @@ -103,7 +103,7 @@ On-site editing overlay for admins: browse the real shop with a sidebar for them | # | Task | Est | Status | |---|---|---|---| -| 1 | Fix double radio button dots in theme editor | 30m | planned | +| 1 | Fix double radio button dots in theme editor | 30m | done | ### Platform site diff --git a/assets/css/admin/components.css b/assets/css/admin/components.css index 0859d2b..e37a091 100644 --- a/assets/css/admin/components.css +++ b/assets/css/admin/components.css @@ -4024,7 +4024,14 @@ } /* Radio card selector (logo mode picker) */ +.theme-radio-fieldset { + border: none; + padding: 0; + margin: 0; +} + .theme-radio-card { + position: relative; display: flex; align-items: center; gap: 0.75rem; @@ -4037,6 +4044,17 @@ &:hover { border-color: var(--admin-text-ghost); } + + &:has(:focus-visible) { + outline: 2px solid var(--t-accent); + outline-offset: 2px; + } +} + +.theme-radio-input { + position: absolute; + opacity: 0; + pointer-events: none; } .theme-radio-card-active { diff --git a/lib/berrypod_web/live/admin/theme/index.html.heex b/lib/berrypod_web/live/admin/theme/index.html.heex index e6cd93b..9d61f38 100644 --- a/lib/berrypod_web/live/admin/theme/index.html.heex +++ b/lib/berrypod_web/live/admin/theme/index.html.heex @@ -90,52 +90,51 @@