Skip to content

Commit 5434ed7

Browse files
committed
Fix border-radius inheritance by avatar image.
Addition of `:root` specificity in Core/Gutenberg seems to be overwriting this. See: WordPress/gutenberg#61638
1 parent f816d1d commit 5434ed7

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array(), 'version' => 'e23a2b6e1727cc51a94e');
1+
<?php return array('dependencies' => array(), 'version' => 'b5db192c873cf02cdf6a');

public/css/blocks/core/avatar.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/scss/blocks/core/avatar.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@
2525
/// wrapper via the Selectors API in PHP so that links can inherit the radius
2626
/// from the wrapper.
2727
///
28+
/// Gutenberg 18.5 (WP 6.6 cycle) overwrote this with its global styles specificity
29+
/// changes (addition of `:root`), so we needed to add the `!important`.
30+
/// @link https://github.com/WordPress/gutenberg/pull/61638
31+
///
2832
.wp-block-avatar > *,
2933
.wp-block-avatar__image,
3034
.wp-block-avatar__link {
31-
border-radius: inherit;
35+
border-radius: inherit !important;
3236
}
3337

3438
// Ensures the `border-radius` applies.

0 commit comments

Comments
 (0)