From fae887670a15f0d8e8b73921bd09575eeff6be91 Mon Sep 17 00:00:00 2001 From: belltalion Date: Thu, 11 Sep 2025 14:57:15 +0900 Subject: [PATCH] Fix Toggle ui --- .changeset/four-plants-jam.md | 5 ++++ .../__snapshots__/index.browser.test.tsx.snap | 24 +++++++++---------- .../src/components/Toggle/index.tsx | 2 +- 3 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 .changeset/four-plants-jam.md diff --git a/.changeset/four-plants-jam.md b/.changeset/four-plants-jam.md new file mode 100644 index 00000000..8be02bd4 --- /dev/null +++ b/.changeset/four-plants-jam.md @@ -0,0 +1,5 @@ +--- +"@devup-ui/components": patch +--- + +Fix toggle ui diff --git a/packages/components/src/components/Toggle/__tests__/__snapshots__/index.browser.test.tsx.snap b/packages/components/src/components/Toggle/__tests__/__snapshots__/index.browser.test.tsx.snap index 2013a32a..784024f7 100644 --- a/packages/components/src/components/Toggle/__tests__/__snapshots__/index.browser.test.tsx.snap +++ b/packages/components/src/components/Toggle/__tests__/__snapshots__/index.browser.test.tsx.snap @@ -3,7 +3,7 @@ exports[`Toggle > should Toggle snapshot 1`] = `
should Toggle snapshot 2`] = `
should Toggle snapshot 2`] = ` exports[`Toggle > should Toggle snapshot 3`] = `
should Toggle snapshot 3`] = ` exports[`Toggle > should Toggle snapshot 4`] = `
should Toggle snapshot 4`] = ` exports[`Toggle > should Toggle snapshot 5`] = `
should Toggle snapshot 6`] = `
should Toggle snapshot 6`] = ` exports[`Toggle > should Toggle snapshot 7`] = `
should Toggle snapshot 7`] = ` exports[`Toggle > should Toggle snapshot 8`] = `
should Toggle snapshot 8`] = ` exports[`Toggle > should Toggle snapshot 9`] = `
should Toggle snapshot 9`] = ` exports[`Toggle > should Toggle snapshot 10`] = `
@@ -177,7 +177,7 @@ exports[`Toggle > should Toggle snapshot 10`] = ` exports[`Toggle > should Toggle snapshot 11`] = `
@@ -196,7 +196,7 @@ exports[`Toggle > should Toggle snapshot 11`] = ` exports[`Toggle > should Toggle snapshot 12`] = `
diff --git a/packages/components/src/components/Toggle/index.tsx b/packages/components/src/components/Toggle/index.tsx index 873c3fa6..ce601da6 100644 --- a/packages/components/src/components/Toggle/index.tsx +++ b/packages/components/src/components/Toggle/index.tsx @@ -68,7 +68,7 @@ export function Toggle({ h={isDefault ? '28px' : '8px'} justifyContent={resultValue && 'flex-end'} onClick={() => !disabled && handleToggle(resultValue)} - p={!isDefault && 1} + p={isDefault && 1} position="relative" role="group" selectors={{