Skip to content

input text placeholder-opacity-100 in Firefox looks lighter #3300

@rockmandash

Description

@rockmandash

Describe the problem:

Firefox default makes <input /> placeholder looks lighter, Tailwind class can't reset this behavior.

I know this is the browser default style, however, since people are explicitly saying placeholder-opacity-100, I think it should override those default style

Link to a minimal reproduction:

Link to Tailwind Play

Code

<input
  class="w-full placeholder-red-500 placeholder-opacity-100"
  placeholder="I will look lighter in Firefox"
/>

Chrome Screenshot

image

Firefox Screenshot

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions