-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: added readonly state variant to passwordInput #17031
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
fix: added readonly state variant to passwordInput #17031
Conversation
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
LGTM
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.
Looks like the show/hide icon is missing styling for readOnly, I believe it should use the $icon-disabled token, and not have any hover states/cursor change.
Co-authored-by: Alison Joseph <[email protected]>
I thought of a same but I could see hover things in disabled state as well , thought its what designed. So do we need to use the $icon-disabled token, and not have any hover states/cursor changes for both disable and readOnly state |
Fixed for both disable and readonly state |
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.
I had one question about the cursor, I'm wondering if the show/hide cursor shouldn't change on hover when in readonly. @laurenmrice?
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.
I had one question about the cursor, I'm wondering if the show/hide cursor shouldn't change on hover when in readonly. @laurenmrice?
Hi @alisonjoseph @riddhybansal,
I checked the readonly state for Combobox and NumberInput (which have interactive elements similar to PasswordInput) and noticed that the cursor does not change on hover.
However, @laurenmrice can confirm this for further validation.
Screen.Recording.2024-08-02.at.1.49.44.PM.mov
Also, a small doubt: are we planning to add the readonly state to the FluidPasswordInput as well?
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.
@Kritvi-bhatia17 @riddhybansal
When hovering over the eye icon button in the read-only state, the cursor should be an arrow
and not a pointer. We use the pointer cursor when you can actually interact with the icon button when its no longer in the read-only state.
e568771
to
f2cb668
Compare
Hi @riddhybansal, could you please confirm this? |
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.
This LGTM. Did you want to add to the fluid version also, or create a new issue?
@Kritvi-bhatia17 do we already have issues for design to add to Figma? Looks like read-only states are missing there also. 👀
I guess there are missing read only states for many fluid components we can tackle them together as a list of task maybe |
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.
Yeah, lets add the fluid in at a future date in a separate PR. Looks good to me @riddhybansal ! ⭐️
695ef81
Closes #16922
PasswordInput does not have readonly state
Changelog
New
Testing / Reviewing
Check if readonly state of passwordInput is working as intented.