-
Notifications
You must be signed in to change notification settings - Fork 56
feat: Password Input component #3238
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
Conversation
✅ Deploy Preview for boosted ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
MaxLardenois
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.
LGTM
except we do not have the icons for Sosh...
Co-authored-by: Maxime Lardenois <[email protected]>
Co-authored-by: Maxime Lardenois <[email protected]>
|
|
||
| A `placeholder` attribute is required on each `<input>` as our CSS-only floating label implementation relies on the `:placeholder-shown` pseudo-element to detect when the input is empty. | ||
|
|
||
| If the placeholder text is empty, it is not visible: only the `<label>` is shown to users. |
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.
Should we be more explicit on the fact that we need a space in the placeholder ?
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.
Sorry, you're right, it was copy / paste before the update in text-input. Update done
| <Example code={`<div class="text-input mb-medium"> | ||
| <div class="text-input-container"> | ||
| <label for="inputPassword">Password</label> | ||
| <input type="password" id="inputPassword" class="text-input-field" placeholder=""> |
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.
All placeholders should be updated with a space character. For now the floating label doesn't work
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.
Yes, same comment as above. Fixed
| <use xlink:href="${getVersionedDocsPath('/assets/img/ouds-web-sprite.svg#lock-closed')}"/> | ||
| </svg> | ||
| <label for="inputPasswordPrefix">Password</label> | ||
| <div class="input-container" data-bs-prefix="DEV-"> |
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.
We tell in Text Input page that the Prefix should be mentioned in helper text for accessibility reasons. We should do so here, and in all prefix examples, to stick to that point :)
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.
You're right. Done!
Types of change
Related issues
Closes #3135
Context & Motivation
New Password Input component
Description
New page in the documentation to show how to configure Text Input as a Password Input
Checklists
Checklist (for Core Team only)
Progression (for Core Team only)
ouds/mainfollowing conventional commitLive previews