Add data-warning prop on button for better snapshot testing (#6040)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2022-08-30 08:28:20 -04:00
1 parent ac6a5f9b83
commit 106c3d246a
6 files changed
+18 -1

No files matched your search

+5 -1
View File
@@ -49,7 +49,11 @@ export const Button = withTooltip((props: ButtonProps) => {
// render as button
return (
<button type="button" {...btnProps}>
<button
type="button"
{...btnProps}
data-waiting={typeof waiting === "boolean" ? String(waiting) : undefined}
>
{label}
{children}
</button>