Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

bug(input): placeholder text inside toolbar is difficult to read #7987

Closed

Description

@robertmesserle

image

HTML:

<md-toolbar>
  <header class="md-toolbar-tools">
    <div>
      <md-input-container md-no-float>
        <input placeholder="placeholder" />
      </md-input-container>
    </div>
  </header>
</md-toolbar>

Activity

  1. changed the title [-]bug(input): placeholder text inside header is difficult to read[/-] [+]bug(input): placeholder text inside toolbar is difficult to read[/+] on Apr 11, 2016
  2. modified the milestone: 1.1.0 on Apr 13, 2016
  3. devversion commented on May 7, 2016

    @devversion
    Member

    Just writing it here. I'm currently looking for a good / the right solution.

    The placeholder currently uses the foreground-1 hue, which is actually for disabled texts and also looking as same as in the specs. (Not chosen by me)

    The foreground palettes are supporting Dark and Light themes, which means that those palettes are not caring about the primary / accent / warn color.

          self.foregroundPalette = self.isDark ? LIGHT_FOREGROUND : DARK_FOREGROUND;
          self.foregroundShadow = self.isDark ? DARK_SHADOW : LIGHT_SHADOW;

    So, as shown in your screenshot, you're using Indigo, which is likely dark.
    But as the foreground palette is not caring about the primary color, it will be still dark and not good to read.

    I think we need to find another palette / solution.

    For comparison in Material 2. See here

  4. EladBezalel commented on May 31, 2016

    @EladBezalel
    Member

    @devversion any update on this?

  5. epelc commented on Jun 9, 2016

    @epelc
    Contributor

    @devversion I think the real problem here is that the forground-*'s only support light or dark. There needs to be a foreground-opposite or something similar for when you are ontop of a background that is opposite of the normal isDark.

    Would be nice to get this fixed. Hopefully it'll also fix the same issue with md-select in dark toolbars.

  6. clshortfuse commented on Jun 14, 2016

    @clshortfuse
    Contributor

    I have somewhat a solution for this, but I can't find a neat way to get it all working as I want. Right now I was thinking of doing adding support for

    foreground-1-contrast
    foregroundLight-1-contrast
    foregroundDark-2-contrast-0.50

    The problem is, though you can force light and dark, that's not really much of the solution. The reality is that contrast and foreground are somewhat same thing.

    Right now, contrast == foreground-1 but no ability to select any other levels of foreground. I have a solution ready, but I'm just trying to get it all working without breaking other changes. The idea of using foreground-1 syntax instead of foreground1 is the root of my issue.

    Edit: I figured it out. I'm going to deprecate foreground-* and -contrast. Instead, I'm going to add:

    • contrastPrimary
    • contrastSecondary
    • contrastDisabled | contrastHint | contrastIcon
    • contrastDivider.

    Any reference to -contrast would be replaced with contrastPrimary. foreground-* values would be replaced with the specified contrast level and background color. ie: foreground-1 becomes background-default-contrastPrimary

  7. ThomasBurleson commented on Jun 23, 2016

    @ThomasBurleson
    Contributor

    @EladBezalel - ping!

  8. EladBezalel commented on Jun 23, 2016

    @EladBezalel
    Member

    @clshortfuse let's pair on this one as well, your PR can solve this?

  9. 17 remaining items

  10. modified the milestones: Future, 1.1.10 on May 4, 2018
  11. modified the milestones: 1.1.10, 1.1.11 on Jun 19, 2018
  12. added a commit that references this issue on Jul 20, 2018
    b5cb673
  13. added
    has: Pull RequestA PR has been created to address this issue
    and removed
    has: Pull RequestA PR has been created to address this issue
    on Jul 20, 2018
  14. modified the milestones: 1.1.11, 1.2.0 on Oct 20, 2018
  15. added a commit that references this issue on Aug 26, 2019
    67a8034
  16. added a commit that references this issue on Jul 1, 2020
    fe260da
  17. added a commit that references this issue on Jul 1, 2020
    a82fc93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

- Breaking ChangeP1: urgentUrgent issues that should be addressed in the next minor or patch release.a11yThis issue is related to accessibilityg3: reportedThe issue was reported by an internal or external product team.has: Pull RequestA PR has been created to address this issueresolution: fixedtype: bugui: theme

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions