Skip to content

Commit 0f8ee81

Browse files
committed
fix: resolve toggle label wrapping to new line
Change display from inline-block to inline-flex so it doesn't conflict with the conditional flex class when a label is present. In Tailwind v4, inline-block was winning over flex due to CSS layer ordering.
1 parent 669ff26 commit 0f8ee81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/atoms/toggle/Toggle.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
:class="[
44
{
55
'pointer-events-none': disabled,
6-
'flex items-center gap-2': label
6+
'gap-2': label
77
}
88
]"
99
:for="id"
10-
class="relative inline-block cursor-pointer"
10+
class="relative inline-flex cursor-pointer items-center"
1111
>
1212
<input
1313
:id="id"

0 commit comments

Comments
 (0)