Skip to content

textarea placeholder color is hardcoded #182

Description

@ntward

The fallback textarea placeholder color is hardcoded in the CSS. This means that it doesn't automatically blend in with an existing site, necessitating additional CSS to override.

The placeholder color CSS rule can be removed.
The placeholder then becomes transparent, but that can be mitigated by adding ':not(:placeholder-shown)' to the rule that makes the textarea contents transparent:

code-input textarea:not([data-code-input-fallback]):not(:placeholder-shown){color:transparent;background:0 0;caret-color:inherit!important}

P.S. Great work

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions