Skip to content
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

feat(phone-number): add autoPlaceholder input property #3330

Open
wants to merge 2 commits into
base: rc
Choose a base branch
from

Conversation

guillerot
Copy link
Contributor

Description

Add input property autoPlaceholder to phone-number-input component.
False by default

If enabled, a placeholder will added to display an example, which will be a national phone number based on selected country code


Enregistrement.de.l.ecran.2024-12-24.a.15.06.53.mov

@guillerot guillerot requested review from a team as code owners December 24, 2024 14:08
@c-3po c-3po bot added the 📖 Documentation changes Requires a Prisme update label Dec 24, 2024
@jeremie-lucca jeremie-lucca added this to the 19.2 milestone Dec 24, 2024
@jeremie-lucca
Copy link
Contributor

To discuss with Clément : set to true by default ?

@LuccaIntegration
Copy link

@jeremie-lucca jeremie-lucca added 🎨 Design sync Discussions with design are required 🔖✨ Feature New feature (even a very small one) labels Dec 24, 2024
@jeremie-lucca jeremie-lucca removed the 🎨 Design sync Discussions with design are required label Jan 6, 2025
@LuccaIntegration
Copy link

@@ -67,6 +68,8 @@ export class PhoneNumberInputComponent implements ControlValueAccessor, Validato

@Input() autocomplete?: 'off' | 'tel';

autoPlaceholder = input<boolean>(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not a big fan of booleans with default value set to true, maybe we should use some kind of disable... input instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📖 Documentation changes Requires a Prisme update 🔖✨ Feature New feature (even a very small one)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants