Skip to content

Commit

Permalink
Lower specificity of tag cloud variation selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed May 13, 2024
1 parent d34c4b0 commit 2296fc5
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions packages/block-library/src/tag-cloud/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,20 @@
margin-left: 5px;
text-decoration: none;
}
}

&.is-style-outline {
display: flex;
flex-wrap: wrap;
gap: 1ch;

a {
border: 1px solid currentColor;
font-size: unset !important; // !important Needed to override the inline styles.
margin-right: 0;
padding: 1ch 2ch;
text-decoration: none !important; // !important needed to override generic post content link decoration.
}
}
// Zero specificity selectors for block style variations to match global styles specificity.
:where(.wp-block-tag-cloud.is-style-outline) {
display: flex;
flex-wrap: wrap;
gap: 1ch;
}
// The block support related styles below haven't been replicated in the base theme.json
// as the block doesn't yet adopt them for its inner links.
:where(.wp-block-tag-cloud.is-style-outline a) {
border: 1px solid currentColor;
font-size: unset !important; // !important Needed to override the inline styles.
margin-right: 0;
padding: 1ch 2ch;
text-decoration: none !important; // !important needed to override generic post content link decoration.
}

0 comments on commit 2296fc5

Please sign in to comment.