Skip to content

Commit 77ff758

Browse files
committed
fix approach
1 parent 8c1cc92 commit 77ff758

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

packages/ui/src/components/SignIn/SignInStart.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,12 +734,25 @@ const InstantPasswordRow = ({
734734
return (
735735
<Form.ControlRow
736736
elementId={field.id}
737-
sx={show ? undefined : { display: 'none' }}
737+
aria-hidden={show ? undefined : true}
738+
sx={
739+
show
740+
? undefined
741+
: {
742+
position: 'absolute',
743+
opacity: 0,
744+
height: 0,
745+
overflow: 'hidden',
746+
pointerEvents: 'none',
747+
marginTop: '-1rem',
748+
}
749+
}
738750
>
739751
<Form.PasswordInput
740752
{...field.props}
741753
actionLabel={show ? localizationKeys('formFieldAction__forgotPassword') : undefined}
742754
onActionClicked={show ? onForgotPasswordClick : undefined}
755+
tabIndex={show ? undefined : -1}
743756
ref={ref}
744757
/>
745758
</Form.ControlRow>

0 commit comments

Comments
 (0)