The issue involves inconsistent styling behaviors in components with experimental theming features.
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.
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:
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:
<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 />
| Light | Dark |
|---|---|
Once the ongoing work on the placeholder text color in the issues linked above is c
Claim this issue to let others know you're working on it. You'll earn 20 points when you complete it!