Skip to content

Commit

Permalink
Merge pull request #6560 from KirilCycle/fix/pt-option-for-pass-ico
Browse files Browse the repository at this point in the history
Fix: 6555 Missing PT Option for IconField in Password
  • Loading branch information
nitrogenous authored May 3, 2024
2 parents c69d65e + cd6763f commit 803c4b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/password/Password.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ export const Password = React.memo(

if (icon) {
input = (
<IconField>
<IconField className={cx('iconField')} pt={ptm('iconField')} __parentMetadata={{ parent: metaData }}>
<InputIcon>{icon}</InputIcon>
{input}
</IconField>
Expand Down
4 changes: 4 additions & 0 deletions components/lib/password/password.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ export interface PasswordPassThroughOptions {
* Used to control React Transition API.
*/
transition?: PasswordPassThroughTransitionType;
/**
* Uses to pass attributes to the IconField component
*/
iconField?: PasswordPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
}

/**
Expand Down

0 comments on commit 803c4b9

Please sign in to comment.