Skip to content

Commit 3c28b33

Browse files
chore: fix review changes
1 parent 456a8ba commit 3c28b33

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

apps/sim/components/emcn/components/banner/banner.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import { cn } from '@/lib/core/utils/cn'
1616
* - **info** - Blue background for informational highlights
1717
* - **success** - Green background for positive confirmations
1818
*/
19+
// TODO: Replace raw Tailwind palette colors with semantic tokens once
20+
// muted banner background tokens (e.g. --banner-destructive-bg) are added to globals.css.
1921
const bannerVariants = cva('shrink-0 px-6 py-2.5', {
2022
variants: {
2123
variant: {

apps/sim/components/emcn/components/switch/switch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const switchThumbVariants = cva(
3838
{
3939
variants: {
4040
size: {
41-
sm: 'h-2.5 w-2.5 data-[state=checked]:translate-x-[11px] data-[state=unchecked]:translate-x-0.5',
41+
sm: 'h-2.5 w-2.5 data-[state=checked]:translate-x-[12px] data-[state=unchecked]:translate-x-0.5',
4242
md: 'h-4 w-4 data-[state=checked]:translate-x-[18px] data-[state=unchecked]:translate-x-0.5',
4343
lg: 'h-5 w-5 data-[state=checked]:translate-x-[22px] data-[state=unchecked]:translate-x-0.5',
4444
},

apps/sim/components/emcn/components/textarea/textarea.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ import { cn } from '@/lib/core/utils/cn'
1212
* - **ghost** - Transparent background, border only on focus/hover
1313
*/
1414
const textareaVariants = cva(
15-
'flex w-full touch-manipulation rounded-sm border font-medium font-sans text-sm text-[var(--text-primary)] transition-colors placeholder:text-[var(--text-muted)] outline-none resize-none overflow-auto disabled:cursor-not-allowed disabled:opacity-50',
15+
'flex w-full touch-manipulation rounded-sm border px-2 py-2 font-medium font-sans text-sm text-[var(--text-primary)] transition-colors placeholder:text-[var(--text-muted)] outline-none resize-none overflow-auto disabled:cursor-not-allowed disabled:opacity-50',
1616
{
1717
variants: {
1818
variant: {
1919
default:
20-
'border-[var(--border-1)] bg-[var(--surface-5)] px-2 py-2 focus-visible:border-[var(--text-muted)]',
20+
'border-[var(--border-1)] bg-[var(--surface-5)] focus-visible:border-[var(--text-muted)]',
2121
error:
22-
'border-[var(--text-error)] bg-[var(--surface-5)] px-2 py-2 focus-visible:border-[var(--text-error)]',
22+
'border-[var(--text-error)] bg-[var(--surface-5)] focus-visible:border-[var(--text-error)]',
2323
ghost:
24-
'border-transparent bg-transparent px-2 py-2 hover-hover:bg-[var(--surface-4)] focus-visible:border-[var(--border-1)] focus-visible:bg-[var(--surface-5)]',
24+
'border-transparent bg-transparent hover-hover:bg-[var(--surface-4)] focus-visible:border-[var(--border-1)] focus-visible:bg-[var(--surface-5)]',
2525
},
2626
},
2727
defaultVariants: {

0 commit comments

Comments
 (0)