From c9f59cbd26e6a0f3525ef4c157025c75ef00c020 Mon Sep 17 00:00:00 2001 From: upsiflu Date: Mon, 30 Dec 2024 13:44:38 +0100 Subject: [PATCH] fix(ui) --- front/src/components/ui/Toggle.vue | 8 ++------ front/ui-docs/components/ui/layout.md | 12 ++++++------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/front/src/components/ui/Toggle.vue b/front/src/components/ui/Toggle.vue index 748c25212..e36f26dad 100644 --- a/front/src/components/ui/Toggle.vue +++ b/front/src/components/ui/Toggle.vue @@ -17,7 +17,7 @@ const diameter = big? '28px' : '20px' :checked = "isOn || undefined" > {{ label }} @@ -48,7 +48,7 @@ const diameter = big? '28px' : '20px' } } - &:hover { + &:hover, &:has(:focus-visible) { --void-color: var(--void-off-hover-background-color); --pin-color: var(--void-off-hover-pin-color); &[checked] { @@ -80,9 +80,5 @@ const diameter = big? '28px' : '20px' > span { padding-left: calc(var(--diameter) + 8px); } - - > input { - visibility: hidden; - } } diff --git a/front/ui-docs/components/ui/layout.md b/front/ui-docs/components/ui/layout.md index 51a983a0d..2c365c1ae 100644 --- a/front/ui-docs/components/ui/layout.md +++ b/front/ui-docs/components/ui/layout.md @@ -71,7 +71,7 @@ const noGap = ref(true); ```
- {{ noGap ? 'no-gap' : '-' }} + --- @@ -106,7 +106,7 @@ const isGrowing = ref(true);