Skip to content

textarea placeholder color is hardcoded #182

@ntward

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions