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

Feature Request: Helper/Hint text for inputs #6785

Closed
ryanyakich opened this issue Jun 6, 2016 · 38 comments
Closed

Feature Request: Helper/Hint text for inputs #6785

ryanyakich opened this issue Jun 6, 2016 · 38 comments
Assignees
Labels
ionitron: v3 moves the issue to the ionic-v3 repository

Comments

@ryanyakich
Copy link

Short description of the problem:

No easy way to add "helper" or "hint" text to a ion-input field.

What behavior are you expecting?

A way to add helper / hint text to an input field. As per Google's Specs:

Helper text, or hint text, should appear below the text field and either be persistently visible, or only visible on focus.

Maybe similar to ion-label's "inline / fixed / stacked / floating" having the ability for the message to be persistently visible, or only visible on focus. As well as accept color variables "danger" or "warning" could be useful for validation.

<ion-item>
  <ion-label>Password</ion-label>
  <ion-input type="password"></ion-input>
  <ion-helper-text >Your password isn’t strong enough, try making it longer.</ion-helper-text>
</ion-item>

Steps to reproduce:
Not applicable

Other information:

http://www.google.com/design/spec/components/text-fields.html#text-fields-required-fields

Which Ionic Version? 1.x or 2.x
2.x (beta 7)

Run ionic info from terminal/cmd prompt: (paste output below)

Cordova CLI: 6.1.1
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.7
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
ios-deploy version: Not installed
ios-sim version: 4.1.1 
OS: Mac OS X El Capitan
Node Version: v6.2.1
Xcode version: Xcode 7.3.1 Build version 7D1014 

@jgw96 jgw96 added feature and removed platform:ios labels Jun 6, 2016
@jgw96 jgw96 changed the title Helper/Hint text for inputs Feature Request: Helper/Hint text for inputs Jun 6, 2016
@danbucholtz
Copy link
Contributor

This is a really interesting idea IMO.

@manucorporat
Copy link
Contributor

Here's a developed proposal:

<ion-item>
  <ion-label>Password</ion-label>
  <ion-input type="password"></ion-input>
  <ion-helper>We need a password in order to secure your account</ion-helper>
  <ion-helper focus>Please! At least 6 alphanumeric long</ion-helper>
  <ion-helper success positive>AWESOME! your password looks good!</ion-helper>
  <ion-helper error danger>Your password isn't strong enough, try making it longer.</ion-helper>
</ion-item>

the idea of ion-helper is to have a declarative way to insert help texts in inputs. ONLY one helper can be shown at a time.

<ion-helper>: by default, no success, neither error, or focused. could be used to explain why this is required.
<ion-helper focus>: when the input is focused, you can use it to provide more detailed help
<ion-helper success>: give the user a positive feedback!
<ion-helper fail>: give the user a negative feedback, so they can fix it

@ryanyakich what do you think?

@manucorporat manucorporat self-assigned this Jun 8, 2016
@ryanyakich
Copy link
Author

@manucorporat That makes sense to me. I am not sure if maybe it would be better to have it more contained. Also, ion-helper seems a bit ambiguous, maybe ion-input-helper and ion-message inside?

<ion-item>
  <ion-label>Password</ion-label>
  <ion-input type="password"></ion-input>
  <ion-input-helper>
    <ion-message>Default helper text</ion-helper-text>
    <ion-message focus>Hey, I am focused</ion-helper-text>
    <ion-message success>Yay! it looks good!</ion-helper-text>
    <ion-message fail>Oh no! there is an error!</ion-helper-text>
  </ion-input-helper>
</ion-item>

Not sure if that makes sense.

@adamdbradley
Copy link
Contributor

I like ion-message. What do other frameworks (and not just JS frameworks) call these elements?

/cc @brandyscarney

@adamdbradley
Copy link
Contributor

Also, this should be purely CSS.

@RG-AG
Copy link

RG-AG commented Sep 6, 2016

Is there a workaround for this issue?

@theromis
Copy link

I want this feature too, any progress on it?

@rpayanm
Copy link

rpayanm commented Jan 23, 2017

Will be nice to have this feature.

@jgw96
Copy link
Contributor

jgw96 commented Feb 6, 2017

Hello everyone! Thanks for the feature request. I'm going to move this issue over to our internal list of feature requests for evaluation. We are continually prioritizing all requests that we receive with outstanding issues. We are extremely grateful for your feedback, but it may not always be our next priority. I'll copy the issue back to this repository when we have begun implementation. Thanks!

@jgw96
Copy link
Contributor

jgw96 commented Feb 6, 2017

This issue was moved to driftyco/ionic-feature-requests#43

@jgw96 jgw96 closed this as completed Feb 6, 2017
@mnasyrov
Copy link

mnasyrov commented Sep 1, 2017

Any update about this feature?

@HudsonAfonso
Copy link

+1

6 similar comments
@lewisflude
Copy link

+1

@wormling
Copy link

+1

@enricodeleo
Copy link

+1

@jbourjeli
Copy link

+1

@Kjetil-Tenold
Copy link

+1

@francovp
Copy link

+1

@ghost
Copy link

ghost commented Feb 14, 2018

+1

3 similar comments
@eltonmrk
Copy link

+1

@jbejas
Copy link

jbejas commented May 4, 2018

+1

@ZameelAmjed
Copy link

+1

@shyaaam
Copy link

shyaaam commented May 24, 2018

Its so frustrating to do this manually, and sucks that ionic is not providing this by default..

@jeffersonmello
Copy link

+1

@brandyscarney brandyscarney reopened this May 29, 2018
@SmirnovM91
Copy link

+1

10 similar comments
@kak00n
Copy link

kak00n commented Jun 13, 2018

+1

@Stefanobosio
Copy link

+1

@damsorian
Copy link

+1

@Zwimber
Copy link

Zwimber commented Aug 15, 2018

+1

@VlnRbn
Copy link

VlnRbn commented Aug 25, 2018

+1

@arairyoto
Copy link

+1

@RomeoDenis
Copy link

+1

@PuriaRad
Copy link

+1

@lennonjesus
Copy link

+1

@webmalc
Copy link

webmalc commented Sep 24, 2018

+1

@adamdbradley adamdbradley added the ionitron: v3 moves the issue to the ionic-v3 repository label Nov 1, 2018
@ionitron-bot
Copy link

ionitron-bot bot commented Nov 1, 2018

Thanks for the issue! We have moved the source code and issues for Ionic 3 into a separate repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there.

Thank you for using Ionic!

@imhoffd imhoffd added ionitron: v3 moves the issue to the ionic-v3 repository and removed ionitron: v3 moves the issue to the ionic-v3 repository labels Nov 1, 2018
@ionitron-bot
Copy link

ionitron-bot bot commented Nov 1, 2018

Thanks for the issue! We have moved the source code and issues for Ionic 3 into a separate repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there.

Thank you for using Ionic!

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 1, 2018

Issue moved to: ionic-team/ionic-v3#100

@ionitron-bot ionitron-bot bot closed this as completed Nov 1, 2018
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ionitron: v3 moves the issue to the ionic-v3 repository
Projects
None yet
Development

No branches or pull requests