Skip to content

Placeholder text does not have sufficient contrast in some browsers (wcag 1.4.3) #4653

Closed

Description

@myasonik

Originally captured by @sasgrw while reviewing Cloud

Bug description:
The "Help me find..." placeholder text in the "Documentation" section has insufficient color contrast. Some browsers (Firefox, for example) use opacity on placeholder text which gives it a lighter color and a lower color contrast.

image
image

Remediation Suggestion:
Use the ::placeholder pseudo class to set the color and/or opacity of the placeholder text. You may have to specify vendor-prefixed selectors on some browsers.

.euiFieldSearch::placeholder {
  opacity: 1;
}

Activity

  1. cchaos commented on Mar 19, 2021

    @cchaos
    Contributor

    Ugh, I had just fixed this specifically for Safari's disabled opacity too. Didn't realize placeholder has it's own issue. Grrr... browsers.... (/¯◡ ‿ ◡)/¯ ~ ┻━┻

  2. self-assigned this
    on Mar 19, 2021
  3. cchaos commented on Jun 11, 2021

    @cchaos
    Contributor

    This was fixed in #4744

  4. removed their assignment
    on Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions