-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Post Comments block - add style supports for text and background sett…
…ings. (#24080) * update block.json * add textAlign in editor * update wront context check / warnings * allow comment html (links) to render in editor * link colors to work in editor * link colors to register on front end * remove check for postType * update editor rendering of comments
- Loading branch information
1 parent
cb2c25a
commit 0662503
Showing
7 changed files
with
84 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,22 @@ | ||
{ | ||
"name": "core/post-comments", | ||
"category": "design", | ||
"attributes": { | ||
"textAlign": { | ||
"type": "string" | ||
} | ||
}, | ||
"usesContext": [ | ||
"postId" | ||
] | ||
"postId", | ||
"postType" | ||
], | ||
"supports": { | ||
"html": false, | ||
"__experimentalFontSize": true, | ||
"__experimentalColor": { | ||
"gradients": true, | ||
"linkColor": true | ||
}, | ||
"__experimentalLineHeight": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.block-editor-block-list__block[data-type="core/post-comments"].has-link-color .wp-block-post-comments a { | ||
color: var(--wp--style--color--link); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.wp-block-post-comments.has-link-color a, | ||
.wp-block-post-comments.has-background.has-link-color a { | ||
color: var(--wp--style--color--link); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters