Skip to content

Conversation

@nilloq
Copy link
Member

@nilloq nilloq commented Nov 24, 2025

Types of change

  • Non-breaking 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

  • I have read the contributing guidelines
  • My change follows the developer guide
  • My change pass all tests
  • My change is compatible with a responsive display
  • I have added tests (Javascript unit test or visual) to cover my changes
  • My change introduces changes to the documentation that I have updated accordingly
    • Title and DOM structure is correct
    • Links have been updated (title changes impact links)
    • CSS for the documentation
  • I have checked all states and combinations of the component with my change
  • I have checked all the impacts for the other components and core behavior (grid, reboot, utilities)

Checklist (for Core Team only)

  • The changes need to be in the migration guide
  • The changes are well displayed in Storybook (be careful if example order has changed for DSM)
  • The changes are compatible with RTL
  • Manually test browser compatibility with BrowserStack (Chrome 120, Firefox 121, Edge 120, Safari 15.6, iOS Safari, Chrome & Firefox on Android)

Progression (for Core Team only)

Live previews

@netlify
Copy link

netlify bot commented Nov 24, 2025

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit 6836851
🔍 Latest deploy log https://app.netlify.com/projects/boosted/deploys/69415c43a057ca0008dcf29d
😎 Deploy Preview https://deploy-preview-3238--boosted.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nilloq nilloq added the 📖 documentation Improvements or additions to documentation label Dec 15, 2025
@nilloq nilloq marked this pull request as ready for review December 15, 2025 10:20
@boosted-bot boosted-bot moved this from In Progress / Draft to Need Dev Review in 🟣 [Orange-Boosted-Bootstrap] PRs Board Dec 15, 2025
Copy link
Collaborator

@MaxLardenois MaxLardenois left a 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...

@boosted-bot boosted-bot moved this from Need Dev Review to Need Lead Dev Review in 🟣 [Orange-Boosted-Bootstrap] PRs Board Dec 15, 2025

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.
Copy link
Collaborator

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 ?

Copy link
Member Author

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="">
Copy link
Collaborator

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

Copy link
Member Author

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-">
Copy link
Collaborator

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 :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. Done!

@boosted-bot boosted-bot moved this from Need Lead Dev Review to Dev Review In Progress in 🟣 [Orange-Boosted-Bootstrap] PRs Board Dec 16, 2025
@nilloq nilloq requested a review from vprothais December 16, 2025 13:21
@boosted-bot boosted-bot moved this from Dev Review In Progress to Need Lead Dev Review in 🟣 [Orange-Boosted-Bootstrap] PRs Board Dec 16, 2025
@vprothais vprothais merged commit bbe65f2 into ouds/main Dec 16, 2025
15 checks passed
@vprothais vprothais deleted the ouds/main-sco-password-input branch December 16, 2025 13:26
@github-project-automation github-project-automation bot moved this from Need Lead Dev Review to Done in 🟣 [Orange-Boosted-Bootstrap] PRs Board Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📖 documentation Improvements or additions to documentation

Projects

Development

Successfully merging this pull request may close these issues.

3 participants