Skip to content

Commit 5666ca1

Browse files
im3dabasiaim3dabasiamukeshpanchal27ciampo
authored
Media & Text: Lower the specificity of the content padding (#83563)
Co-authored-by: im3dabasia <im3dabasia1@git.wordpress.org> Co-authored-by: mukeshpanchal27 <mukesh27@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
1 parent ba685d7 commit 5666ca1

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎packages/block-library/CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Enhancements
66

77
- Columns: Remove the column count slider from the block settings ([#83262](https://github.com/WordPress/gutenberg/pull/83262)).
8+
- Media & Text: Lower the specificity of the content area's default padding so themes can override it, including through the block's custom CSS in `theme.json` ([#83563](https://github.com/WordPress/gutenberg/pull/83563)).
89
- Gallery: Add an "Order by" sorting control to the static gallery mode, and consolidate sorting control for static and dynamic modes in the Settings panel ([#83438](https://github.com/WordPress/gutenberg/pull/83438)).
910

1011
### Bug Fixes

‎packages/block-library/src/media-text/style.scss‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,15 @@
5252
grid-column: 2;
5353
grid-row: 1;
5454
/*rtl:end:ignore*/
55-
padding: 0 8% 0 8%;
5655
// stylelint-disable-next-line declaration-property-value-keyword-no-deprecated -- Pending review of overflow-wrap alternative.
5756
word-break: break-word;
5857
}
5958

59+
// Zero specificity so the default padding can be overridden by theme.json or theme styles.
60+
:where(.wp-block-media-text > .wp-block-media-text__content) {
61+
padding: 0 8%;
62+
}
63+
6064
.wp-block-media-text.has-media-on-the-right > .wp-block-media-text__media {
6165
/*rtl:begin:ignore*/
6266
grid-column: 2;

0 commit comments

Comments
 (0)