Skip to content

Commit

Permalink
fix: AppNaviDropdown が current の時に押せなくなる不具合を修正 (#4517)
Browse files Browse the repository at this point in the history
  • Loading branch information
uknmr authored Mar 29, 2024
1 parent ffa4e7d commit 650859c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/AppNavi/AppNaviDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ const appNaviDropdown = tv({
],
},
},
active: {
true: {
wrapper: 'shr-cursor-pointer',
},
},
},
})

Expand All @@ -49,11 +54,7 @@ export const AppNaviDropdown: FC<AppNaviDropdownProps> = ({
return (
<Dropdown>
<DropdownTrigger>
<UnstyledButton
aria-current={current ? 'page' : undefined}
disabled={current}
className={wrapperStyle}
>
<UnstyledButton aria-current={current ? 'page' : undefined} className={wrapperStyle}>
{Icon && <Icon className={iconStyle} />}
{children}
{displayCaret && <FaCaretDownIcon />}
Expand Down

0 comments on commit 650859c

Please sign in to comment.