-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tag Cloud Block: Add outline style #37092
Changes from 7 commits
f1964b0
c1ba164
c95475e
f1ae4dc
4fc6f14
386c9e5
2e6e468
e00ddef
f898209
a27e85e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,13 @@ | |
margin-left: 5px; | ||
text-decoration: none; | ||
} | ||
|
||
&.is-style-pill a { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we remove the underline in this case? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I don't think an underline is necessary. |
||
border: 1px solid currentColor; | ||
font-size: var(--wp--preset--font-size--normal) !important; // !important Needed to override the inline styles. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The normal font size has been depreciated, so we might want to switch to "Medium" here? .... but if we don't specify a font size maybe we're better off? Then it should inherit the default size. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The problem is if we don't specify a size then the font sizes are determined by how often the tag is used There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
margin-bottom: 1ch; | ||
margin-right: 1ch; | ||
padding: 1ch 2ch; | ||
text-decoration: none !important; // !important needed to override generic post content link decoration. | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason why this style isn't included in the
block.json
file? See: https://github.com/WordPress/gutenberg/blob/trunk/docs/reference-guides/block-api/block-metadata.md#block-styles.