Skip to content

Commit

Permalink
Fix button data-theme attr
Browse files Browse the repository at this point in the history
  • Loading branch information
jandrade committed Jun 12, 2024
1 parent 741f402 commit 9106b52
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ const ButtonCore: React.ForwardRefExoticComponent<
id: id,
role: "button",
className: defaultStyle,
"data-panda-theme": theme.theme,
...restProps,
} as const;

Expand Down Expand Up @@ -224,7 +225,6 @@ const ButtonCore: React.ForwardRefExoticComponent<
{...commonProps}
aria-disabled={disabled}
ref={ref as React.Ref<HTMLButtonElement>}
data-panda-theme={theme.theme}
>
{contents}
</StyledButton>
Expand Down

0 comments on commit 9106b52

Please sign in to comment.