-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix(PasswordInput): tooltip issue in show password label or hide password label #17103
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(PasswordInput): tooltip issue in show password label or hide password label #17103
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. |
Hey @preetibansalui Just a question : Should the tooltip be rendered on UI if the string is empty ? I see warning is console but the tooltip renders with no content. Im curious of useCase where consumers would want to pass an empty string for hidePasswordLabel/ ShowPasswordLabel. ![]() |
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 good to me from design perspective! 🎉
Hi @2nikhiltom, you've raised a valid point.
|
Also, as per the a11y point of view, all clickable icons will have a tooltip. If no tooltip text is provided, a blank tooltip will be displayed. |
It makes sense from a11y point of view, thanks Preeti |
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 good to me!
aa7b805
Closes #16924
fixed broken tooltip if label is blank and added a console warning if label is blank.
New
added a console warning if showPasswordLabel or hidePasswordLabel is blank.