|
22 | 22 |
|
23 | 23 | <label |
24 | 24 | class={[ |
25 | | - "flex w-max flex-row items-start", |
| 25 | + "flex w-max max-w-full flex-row items-start", |
26 | 26 | { sm: "gap-2", md: "gap-3" }[size], |
27 | 27 | className, |
28 | 28 | ]} |
|
36 | 36 | /> |
37 | 37 | <div |
38 | 38 | class={[ |
39 | | - "cursor-pointer rounded-full p-0.5 transition-colors duration-200", |
40 | | - "bg-bg-tertiary", |
41 | | - "peer-checked:bg-bg-brand-solid dark:peer-checked:bg-bg-quaternary", |
42 | | - "peer-checked:hover:bg-bg-brand-solid_hover dark:peer-checked:hover:bg-bg-quaternary_hover", |
43 | | - "after:block after:rounded-full after:bg-white after:shadow-sm after:transition-transform after:duration-200", |
| 39 | + "shrink-0 cursor-pointer rounded-full p-0.5 transition-colors duration-200", |
| 40 | + "bg-bg-tertiary dark:bg-bg-quaternary/60", |
| 41 | + "peer-checked:bg-bg-brand-solid dark:peer-checked:bg-fg-tertiary", |
| 42 | + "after:block after:rounded-full after:bg-white after:shadow-xs after:transition-transform after:duration-200", |
44 | 43 | "peer-checked:after:translate-x-[100%]", |
45 | 44 | "peer-disabled:bg-bg-disabled peer-disabled:after:bg-surface-light-50 dark:peer-disabled:after:bg-surface-dark-400", |
46 | 45 | "peer-focus-visible:ring-focus-ring peer-focus-visible:ring-offset-bg-primary outline-none peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2", |
|
56 | 55 | <p |
57 | 56 | class={[ |
58 | 57 | "text-text-secondary font-medium select-none", |
59 | | - { sm: "text-sm", md: "text-md" }[size], |
| 58 | + { sm: "text-sm", md: "text-base" }[size], |
60 | 59 | ]} |
61 | 60 | > |
62 | 61 | {label} |
|
66 | 65 | <p |
67 | 66 | class={[ |
68 | 67 | "text-text-tertiary select-none", |
69 | | - { sm: "text-sm", md: "text-md" }[size], |
| 68 | + { sm: "text-sm", md: "text-base" }[size], |
70 | 69 | ]} |
71 | 70 | > |
72 | 71 | {hint} |
|
0 commit comments