-
Notifications
You must be signed in to change notification settings - Fork 863
docs(text-input): update password input read-only documentation #4760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
docs(text-input): update password input read-only documentation #4760
Conversation
alina-jacob
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi there @Subham-KRLX, thanks for working on this!
A couple of things
- The website change in the usage tab is incorrect. This issue resolves the fact that the 'eye/visibility' toggle button is now enabled even in read-only states. So this edit can be entirely skipped.
- Issue #4757 highlights the need to make changes in the style tab so this PR doesn't fulfill that requirement yet.
|
Hi @alina-jacob thanks for the review I have reverted the changes to usage.mdx since the toggle is enabled in read-only state. I have also reviewed the Style tab and since the toggle follows the standard enabled interaction I haven't added specific 'disabled' documentation. Please let me know if any other specific visual specs need to be listed there. |
Closes #4757
Updated the Password Input documentation to reflect that the visibility toggle is disabled in the read-only state and added a corresponding Storybook demo variant.
Changelog
New
Added "Password Input (Read only)" variant to the Storybook demo in
code.mdx
.
Changed
Updated
usage.mdx
to explicitly state that the password visibility toggle is disabled when the input is read-only.
Removed
None