Skip to content

Commit 4fb59e1

Browse files
committed
refactor(ui): refine password toggle button positioning
1 parent dd2d24e commit 4fb59e1

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

packages/ui/src/elements/PasswordInput.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,10 @@ export const PasswordInput = forwardRef<HTMLInputElement, PasswordInputProps>((p
114114
onClick={() => setHidden(s => !s)}
115115
sx={theme => ({
116116
position: 'absolute',
117-
insetInlineEnd: 0,
118-
marginInlineEnd: theme.space.$0x75,
119-
paddingInline: theme.space.$2,
120-
height: `calc(100% - (${theme.space.$0x75} * 2))`,
121-
color: theme.colors.$neutralAlpha400,
117+
insetInlineEnd: theme.space.$0x75,
122118
borderRadius: theme.radii.$sm,
119+
color: theme.colors.$neutralAlpha400,
120+
paddingInline: theme.space.$2,
123121
'&::before': {
124122
content: '""',
125123
position: 'absolute',

0 commit comments

Comments
 (0)