Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
InputControl and TextareaControl: label, placeholder, and background colors should work consistently and be always readable | GoodFirstPicks

InputControl and TextareaControl: label, placeholder, and background colors should work consistently and be always readable

WordPress/gutenberg 2 comments 1mo ago
View on GitHub
mediumopenScope: somewhat clearSkill match: maybeTest focusedWordPressJavaScriptReact

Why this is a good first issue

The issue involves inconsistent styling behaviors in components with experimental theming features.

AI Summary

The issue highlights inconsistent and buggy behaviors in `InputControl` and `TextareaControl` components regarding label, placeholder, and background colors, especially noticeable with dark themes. The problem requires ensuring consistent styling across all states and backgrounds. However, the maintainer notes that experimental theming features are not officially supported and will be replaced by an official theming system, which could impact the relevance of this fix.

Issue Description

Description

While going through https://github.com/WordPress/gutenberg/issues/60275, https://github.com/WordPress/gutenberg/pull/68807, https://github.com/WordPress/gutenberg/pull/69312, and https://github.com/WordPress/gutenberg/pull/69334, I noticed InputControl and TextareaControl hav einconsistent and buggy behaviors for:

  • The label color.
  • The placeholder attribute color.
  • The input and textarea background color.
  • The input and textarea background color when disabled.

This is more noticeable when using the components inside the editor canvas with both a light and dark backgrounds.

One of these buggy behaviors is surfaced after the is-dark-theme CSS class for the Post Editor was fixed in https://github.com/WordPress/gutenberg/pull/68481

I'd expect these two components to use a consistent styling for all states and have the same behavior with a dark background theme. Cc @WordPress/gutenberg-components

To quickly test, I added the components below to the PostTitle:

Added components!
<TextareaControl
	label="TextareaControl"
	placeholder="Placeholder"
	rows={ 3 }
	__nextHasNoMarginBottom
/>
<br />
<InputControl
	__next40pxDefaultSize
	type="text"
	value=""
	label="InputControl"
	placeholder="Placeholder"
/>
<br />
<TextareaControl
	label="TextareaControl disabled"
	placeholder="Placeholder"
	rows={ 3 }
	__nextHasNoMarginBottom
	disabled
/>
<br />
<InputControl
	__next40pxDefaultSize
	type="text"
	value=""
	label="InputControl disabled"
	placeholder="Placeholder"
	disabled
/>
<br />
LightDark
ImageImage

Once the ongoing work on the placeholder text color in the issues linked above is c

GitHub Labels

[Type] Bug[Focus] Accessibility (a11y)[Package] Components

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 20 points when you complete it!

Risk Flags

  • experimental theming features
  • potential architectural changes
Loading labels...

Details

Points20 pts
Difficultymedium
Scopesomewhat clear
Skill Matchmaybe
Test Focusedyes
Assigneeafercia