Skip to content

Commit

Permalink
Styles: lower specificity of figcaption style to allow theme.json ove…
Browse files Browse the repository at this point in the history
…rride (#62689)
  • Loading branch information
ellatrix committed Jun 25, 2024
1 parent 05660cf commit b68d394
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/audio/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Supply caption styles to audio blocks, even if the theme hasn't opted in.
// Reason being: the new markup, <figcaptions>, are not likely to be styled in the majority of existing themes,
// so we supply the styles so as to not appear broken or unstyled in those themes.
figcaption {
:where(figcaption) {
@include caption-style();
}

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/audio/theme.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.wp-block-audio figcaption {
.wp-block-audio :where(figcaption) {
@include caption-style-theme();
}

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/embed/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
// Supply caption styles to embeds, even if the theme hasn't opted in.
// Reason being: the new markup, figcaptions, are not likely to be styled in the majority of existing themes,
// so we supply the styles so as to not appear broken or unstyled in those.
figcaption {
:where(figcaption) {
@include caption-style();
}

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/embed/theme.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.wp-block-embed figcaption {
.wp-block-embed :where(figcaption) {
@include caption-style-theme();
}

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/image/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
// Supply caption styles to images, even if the theme hasn't opted in.
// Reason being: the new markup, <figcaptions>, are not likely to be styled in the majority of existing themes,
// so we supply the styles so as to not appear broken or unstyled in those themes.
figcaption {
:where(figcaption) {
@include caption-style();
}

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/table/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
word-break: normal;
}

figcaption {
:where(figcaption) {
@include caption-style-theme();
}
}
2 changes: 1 addition & 1 deletion packages/block-library/src/video/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// Supply caption styles to videos, even if the theme hasn't opted in.
// Reason being: the new markup, <figcaptions>, are not likely to be styled in the majority of existing themes,
// so we supply the styles so as to not appear broken or unstyled in those themes.
figcaption {
:where(figcaption) {
@include caption-style();
}
}
2 changes: 1 addition & 1 deletion packages/block-library/src/video/theme.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.wp-block-video figcaption {
.wp-block-video :where(figcaption) {
@include caption-style-theme();
}

Expand Down

0 comments on commit b68d394

Please sign in to comment.