Skip to content

Commit 78dcdb5

Browse files
committed
fix: radio and checkbox alignment
1 parent aaa9cd4 commit 78dcdb5

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

app/components/form/field-checkbox/docs.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export const CustomCheckbox = () => {
139139
<button
140140
type="button"
141141
{...props}
142-
className="flex w-full justify-between outline-none"
142+
className="flex w-full items-center justify-between outline-none"
143143
>
144144
<span className="font-medium">I love bears</span>
145145
<span

app/components/form/field-radio-group/docs.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export const WithCustomRadio = () => {
203203
<button
204204
type="button"
205205
{...props}
206-
className="flex w-full justify-between outline-none"
206+
className="flex w-full items-center justify-between outline-none"
207207
>
208208
<span className="font-medium">{label}</span>
209209
<span

app/components/ui/checkbox.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const CustomCheckbox = () => {
4747
<button
4848
type="button"
4949
{...props}
50-
className="flex w-full justify-between outline-none"
50+
className="flex w-full items-center justify-between outline-none"
5151
>
5252
<span className="font-medium">I love bears</span>
5353
<span

app/components/ui/checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import React from 'react';
55

66
import { cn } from '@/lib/tailwind/utils';
77

8-
const labelVariants = cva('flex items-center gap-2.5 text-primary', {
8+
const labelVariants = cva('flex items-start gap-2.5 text-primary', {
99
variants: {
1010
size: {
1111
default: 'text-sm',

app/components/ui/radio-group.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export const WithCustomRadio = () => {
132132
<button
133133
type="button"
134134
{...props}
135-
className="flex w-full justify-between outline-none"
135+
className="flex w-full items-center justify-between outline-none"
136136
>
137137
<span className="font-medium">{label}</span>
138138
<span

app/components/ui/radio-group.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as React from 'react';
66

77
import { cn } from '@/lib/tailwind/utils';
88

9-
const labelVariants = cva('flex items-center gap-2.5 text-primary', {
9+
const labelVariants = cva('flex items-start gap-2.5 text-primary', {
1010
variants: {
1111
size: {
1212
default: 'text-sm',

0 commit comments

Comments
 (0)