-
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
RSS: Added Colour support #66419
base: trunk
Are you sure you want to change the base?
RSS: Added Colour support #66419
Changes from 4 commits
1f048b2
9fd577f
a4db05a
ae02c0c
8728731
a96896c
b60ed55
eb813f7
db65c19
bbe96dc
3b2b9ea
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 |
---|---|---|
|
@@ -46,6 +46,26 @@ | |
"html": false, | ||
"interactivity": { | ||
"clientNavigation": true | ||
}, | ||
"color": { | ||
"background": true, | ||
"text": true, | ||
"gradients": true, | ||
"link": true | ||
}, | ||
"typography": { | ||
"fontSize": true, | ||
"lineHeight": true, | ||
"__experimentalFontFamily": true, | ||
"__experimentalFontWeight": true, | ||
"__experimentalFontStyle": true, | ||
"__experimentalTextTransform": true, | ||
"__experimentalLetterSpacing": true, | ||
"__experimentalTextDecoration": true, | ||
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. Probably not a big deal, but the underline control in text decoration won't affect a:where(:not(.wp-element-button)) {
text-decoration: underline;
} I'm not sure whether users will expect text decoration to affect all text within the RSS block 🤔 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. There might be some options here to apply text decoration more effectively. Individual block support features, e.g. text-decoration, can have their serialization of styles and classes skipped. They can then be manually applied to the appropriate inner elements. For the Global Styles side of that equation, the Block Selectors API allows custom selectors for individual features so they target the same inner elements. For an example of skipping serialization of only Note: The navigation block skipped that serialization before the Selector's API was implemented so I'm not sure if it covers Global Styles or not. 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. Thanks @aaronrobertshaw for the reference and suggestion. Tried to follow the same way as in the Navigation block. Bu as you mentioned, it doesn't covers Global Styles. We need to tweak more on this. I have added all the changes in recent commit. More suggestions are welcome for this scenario. |
||
"__experimentalDefaultControls": { | ||
"fontSize": true, | ||
"textDecoration": true | ||
} | ||
} | ||
}, | ||
"editorStyle": "wp-block-rss-editor", | ||
|
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.
I think we can remove the
__experimental
prefixes now that #63401 has merged 👍🏻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.
+1
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.
__experimental prefixes removed in recent commit.