Skip to content

bug: floating label does not get primary color on focus #15602

Closed

Description

@bkarv

Support Question

This is an observation I noticed between Ionic 3 and Ionic 4, the input boxes underline for PWA no longer highlights to the primary color on focus. Was this intentional?

I actually prefer having it off by default anyway but is there an option to restore the highlights on focus?

Ionic 3
screen shot 2018-09-15 at 10 21 57 am

Ionic 4
screen shot 2018-09-15 at 10 05 54 am

Activity

  1. paulstelzer commented on Dec 4, 2018

    @paulstelzer
    Contributor

    Thanks for the issue! Are you still seeing this problem in latest, 4.0.0-beta.17?

  2. added
    needs: reply
    and removed on Dec 4, 2018
  3. bkarv commented on Dec 5, 2018

    @bkarv
    Author

    Underline highlights on focus but not floating label

  4. added and removed
    needs: reply
    on Dec 5, 2018
  5. paulstelzer commented on Dec 6, 2018

    @paulstelzer
    Contributor

    @bkarv Thanks for your answer! Take a look at the documentation ( https://beta.ionicframework.com/docs/api/input ). To get a floating label you have to use the following:

    <ion-item>
      <ion-label position="floating">Floating Label</ion-label>
      <ion-input></ion-input>
    </ion-item>
    

    If your problem is solved, we can close this issue :)

  6. added
    needs: reply
    and removed on Dec 6, 2018
  7. bkarv commented on Dec 6, 2018

    @bkarv
    Author

    Seriously??? Sorry but my issue wasn’t on how to make a floating label, it was that fact the the floating label doesn’t focus to the primary colour like it did in ionic 3. I know you have been given the task to close out as many open issues and I understand why but please check the original question/issues being reported.

  8. added and removed
    needs: reply
    on Dec 6, 2018
  9. paulstelzer commented on Dec 6, 2018

    @paulstelzer
    Contributor

    Thanks for your answer and clarify what you want. Now I understand it :) I will take a lookt at it

  10. 3 remaining items

  11. paulstelzer commented on Dec 6, 2018

    @paulstelzer
    Contributor

    So sorry, that I did not understand you correctly! But it's indeed an issue (for material design). I will notify the Ionic dev team for this.

    Expected:

    chrome_2018-12-06_09-51-06

    Link to Material Design: https://material.io/design/components/text-fields.html#filled-text-field

    Current:

    chrome_2018-12-06_09-49-43

  12. added
    type: bug
    and removed on Dec 6, 2018
  13. changed the title [-]Ionic Beta 8 - PWA Input Google Material Theming - underline no longer highlighted[/-] [+]bug: floating label does not get primary color on focus[/+] on May 1, 2019
  14. added a commit that references this issue on May 1, 2019
    3a96d6f
  15. added a commit that references this issue on May 7, 2019
    ddb8ef8
  16. added 4 commits that reference this issue on May 8, 2019
    5eb942f
    71d5400
    2c24df2
    9c65d5d
  17. added a commit that references this issue on May 22, 2019
    3da7254
  18. ionitron-bot commented on Jun 6, 2019

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  19. locked and limited conversation to collaborators on Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

package: coretype: bug

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions