From 5786ed6304476d1a605616935cbbad19c11fc40d Mon Sep 17 00:00:00 2001 From: Qs-F Date: Thu, 30 May 2024 11:55:08 +0900 Subject: [PATCH 1/3] =?UTF-8?q?fix(TabBar):=20TabItem=E3=81=AE=E9=AB=98?= =?UTF-8?q?=E3=81=95=E5=9B=BA=E5=AE=9A=E3=82=92padding=E3=81=AE=E7=A9=8D?= =?UTF-8?q?=E3=81=BF=E4=B8=8A=E3=81=92=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/smarthr-ui/src/components/TabBar/TabItem.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/smarthr-ui/src/components/TabBar/TabItem.tsx b/packages/smarthr-ui/src/components/TabBar/TabItem.tsx index a899d6a685..bc87c94161 100644 --- a/packages/smarthr-ui/src/components/TabBar/TabItem.tsx +++ b/packages/smarthr-ui/src/components/TabBar/TabItem.tsx @@ -7,11 +7,10 @@ import { UnstyledButton } from '../Button' const tabItem = tv({ base: [ 'smarthr-ui-TabItem', - 'shr-cursor-pointer shr-appearance-none shr-border-none shr-bg-transparent shr-px-1 shr-py-0 shr-font-bold hover:shr-bg-column hover:shr-text-black [&]:shr-box-border [&]:shr-text-grey', - 'shr-h-[43px]', // TODO 高さを指定しないようにする + 'shr-cursor-pointer shr-appearance-none shr-border-none shr-bg-transparent shr-px-1 shr-pt-[6.5px] shr-pb-[9.5px] shr-font-bold hover:shr-bg-column hover:shr-text-black [&]:shr-box-border [&]:shr-text-grey', 'disabled:shr-cursor-not-allowed disabled:shr-bg-transparent disabled:shr-text-grey/50', 'aria-selected:shr-border-b-shorthand aria-selected:shr-relative aria-selected:shr-border-b-[3px] aria-selected:shr-border-main aria-selected:shr-text-black', - 'aria-selected:shr-h-[40px]', // TODO 高さを指定しないようにする + 'aria-selected:shr-pb-[6.5px]', ], variants: { isTouchDevice: { From dd583e992bfaf36d00772e37d929a25f61c23a59 Mon Sep 17 00:00:00 2001 From: Qs-F Date: Thu, 30 May 2024 15:46:49 +0900 Subject: [PATCH 2/3] test(TabBar): Update snapshot --- .../components/TabBar/__snapshots__/TabBar.test.tsx.snap | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/smarthr-ui/src/components/TabBar/__snapshots__/TabBar.test.tsx.snap b/packages/smarthr-ui/src/components/TabBar/__snapshots__/TabBar.test.tsx.snap index 4e9fbbf054..24042c7438 100644 --- a/packages/smarthr-ui/src/components/TabBar/__snapshots__/TabBar.test.tsx.snap +++ b/packages/smarthr-ui/src/components/TabBar/__snapshots__/TabBar.test.tsx.snap @@ -10,7 +10,7 @@ exports[`TabBar should be match snapshot 1`] = ` >