Skip to content

Commit ede1dbf

Browse files
committed
Fix PasswordInput
1 parent 3ca8a2c commit ede1dbf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/password-input/src/PasswordInput/PasswordInput.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export const PasswordInput = React.forwardRef<
115115
className={className}
116116
ref={forwardedRef}
117117
data-lgid={lgIds.root}
118-
data-test={lgIds.root}
118+
data-testid={lgIds.root}
119119
>
120120
{label && (
121121
<Label
@@ -124,8 +124,8 @@ export const PasswordInput = React.forwardRef<
124124
})}
125125
htmlFor={inputId}
126126
disabled={disabled}
127-
data-lgid={lgIds.root}
128-
data-testid={lgIds.root}
127+
data-lgid={lgIds.label}
128+
data-testid={lgIds.label}
129129
>
130130
{label}
131131
</Label>

packages/password-input/src/utils/getLgIds.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const getLgIds = (root: LgIdString = DEFAULT_LGID_ROOT) => {
66
const ids = {
77
root,
88
stateNotifications: `${root}-state_notifications`,
9+
label: `${root}-label`,
910
} as const;
1011
return ids;
1112
};

0 commit comments

Comments
 (0)