Skip to content

Commit

Permalink
fix: pointer events 속성으로 버튼 이벤트 막기
Browse files Browse the repository at this point in the history
  • Loading branch information
hamo-o committed Aug 28, 2024
1 parent e2586d3 commit 69aabba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/wow-ui/src/components/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,10 @@ export const LinkButton: Story = {
href: "/",
},
};

export const DisabledButton: Story = {
args: {
children: "버튼",
disabled: true,
},
};
2 changes: 1 addition & 1 deletion packages/wow-ui/src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const ButtonStyle = cva({
_disabled: {
background: "monoBackgroundPressed",
color: "outline",
cursor: "not-allowed",
pointerEvents: "none",
},
_hover: {
shadow: "blue",
Expand Down

0 comments on commit 69aabba

Please sign in to comment.