From b78faa0c79b2daff14891203fd2168092c76ff6f Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 23 Nov 2024 11:41:55 +0100 Subject: [PATCH] [@mantine/core] PasswordInput: Fix `visibilityToggleButtonProps.variant` prop being ignored (#7144) --- .../core/src/components/PasswordInput/PasswordInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@mantine/core/src/components/PasswordInput/PasswordInput.tsx b/packages/@mantine/core/src/components/PasswordInput/PasswordInput.tsx index 4a8ecef9d66..a490c25553b 100644 --- a/packages/@mantine/core/src/components/PasswordInput/PasswordInput.tsx +++ b/packages/@mantine/core/src/components/PasswordInput/PasswordInput.tsx @@ -152,7 +152,7 @@ export const PasswordInput = factory((_props, ref) => { aria-hidden={!visibilityToggleButtonProps} tabIndex={-1} {...visibilityToggleButtonProps} - variant="subtle" + variant={visibilityToggleButtonProps?.variant ?? 'subtle'} color="gray" unstyled={unstyled} onTouchEnd={(event) => {