Skip to content

Commit

Permalink
fix: #6776 (#7249)
Browse files Browse the repository at this point in the history
Ensure `InputIcon` can be styled when in unstyled mode
  • Loading branch information
gcko authored Sep 25, 2024
1 parent dfe5e9f commit ff3b083
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions components/doc/password/theming/tailwinddoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ const Tailwind = {
hideicon: {
className: classNames('absolute top-1/2 -mt-2', 'right-3 text-gray-600 dark:text-white/70')
},
inputIcon: {
root: 'mt-0'
},
transition: TRANSITIONS.overlay
}
}
Expand Down
3 changes: 3 additions & 0 deletions components/lib/passthrough/tailwind/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,9 @@ const Tailwind = {
hideIcon: {
className: classNames('absolute top-1/2 -mt-2', 'right-3 text-gray-600 dark:text-white/70')
},
inputIcon: {
root: 'mt-0'
},
transition: TRANSITIONS.overlay
},
togglebutton: {
Expand Down
4 changes: 3 additions & 1 deletion components/lib/password/Password.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,9 @@ export const Password = React.memo(
input = (
<IconField className={cx('iconField')} pt={ptm('iconField')} __parentMetadata={{ parent: metaData }}>
{input}
<InputIcon>{icon}</InputIcon>
<InputIcon className={cx('inputIcon')} pt={ptm('inputIcon')} __parentMetadata={{ parent: metaData }}>
{icon}
</InputIcon>
</IconField>
);
}
Expand Down

0 comments on commit ff3b083

Please sign in to comment.