Skip to content

Commit b78faa0

Browse files
[@mantine/core] PasswordInput: Fix visibilityToggleButtonProps.variant prop being ignored (#7144)
1 parent bad9bc5 commit b78faa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@mantine/core/src/components/PasswordInput/PasswordInput.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export const PasswordInput = factory<PasswordInputFactory>((_props, ref) => {
152152
aria-hidden={!visibilityToggleButtonProps}
153153
tabIndex={-1}
154154
{...visibilityToggleButtonProps}
155-
variant="subtle"
155+
variant={visibilityToggleButtonProps?.variant ?? 'subtle'}
156156
color="gray"
157157
unstyled={unstyled}
158158
onTouchEnd={(event) => {

0 commit comments

Comments
 (0)