Skip to content

Commit 1f9744c

Browse files
im3dabasiaim3dabasiayogeshbhutkart-hamanociampo
authored
Components: Fix Styling for TextControland TextAreaControl in dark themes (#69640)
Co-authored-by: im3dabasia <[email protected]> Co-authored-by: yogeshbhutkar <[email protected]> Co-authored-by: t-hamano <[email protected]> Co-authored-by: ciampo <[email protected]> Co-authored-by: Mamaduka <[email protected]>
1 parent 221d9c3 commit 1f9744c

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

packages/components/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
- `Guide`: Make next and previous button text customizable ([#69907](https://github.com/WordPress/gutenberg/pull/69907)).
88
- `Popover`: Introduce a virtual padding of `8px` to prevent it from hitting the viewport edge ([#69555](https://github.com/WordPress/gutenberg/pull/69555)).
9+
- `TextControl`: Add theming support ([#69640](https://github.com/WordPress/gutenberg/pull/69640)).
10+
- `TextareaControl`: Add theming support ([#69640](https://github.com/WordPress/gutenberg/pull/69640)).
911

1012
### Bug Fixes
1113

packages/components/src/text-control/style.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
height: $grid-unit-40;
1717
// Override input style margin in WP forms.css.
1818
margin: 0;
19-
@include input-control;
19+
background: $components-color-background;
20+
color: $components-color-foreground;
21+
@include input-control( $components-color-accent);
2022

2123
&.is-next-40px-default-size {
2224
height: $grid-unit-50;

packages/components/src/textarea-control/styles/textarea-control-styles.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ export const StyledTextarea = styled.textarea`
3737
display: block;
3838
font-family: ${ font( 'default.fontFamily' ) };
3939
line-height: 20px;
40+
background: ${ COLORS.theme.background };
41+
color: ${ COLORS.theme.foreground };
4042
4143
// Vertical padding is to match the standard 40px control height when rows=1,
4244
// in conjunction with the 20px line-height.

0 commit comments

Comments
 (0)