Skip to content

Commit

Permalink
Latest Posts: Add typography supports (#43540)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Aug 26, 2022
1 parent 28ddeec commit 03d6d85
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Expand Up @@ -329,7 +329,7 @@ Display a list of your most recent posts. ([Source](https://github.com/WordPress

- **Name:** core/latest-posts
- **Category:** widgets
- **Supports:** align, ~~html~~
- **Supports:** align, typography (fontSize, lineHeight), ~~html~~
- **Attributes:** addLinkToFeaturedImage, categories, columns, displayAuthor, displayFeaturedImage, displayPostContent, displayPostContentRadio, displayPostDate, excerptLength, featuredImageAlign, featuredImageSizeHeight, featuredImageSizeSlug, featuredImageSizeWidth, order, orderBy, postLayout, postsToShow, selectedAuthor

## List
Expand Down
15 changes: 14 additions & 1 deletion packages/block-library/src/latest-posts/block.json
Expand Up @@ -84,7 +84,20 @@
},
"supports": {
"align": true,
"html": false
"html": false,
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
}
},
"editorStyle": "wp-block-latest-posts-editor",
"style": "wp-block-latest-posts"
Expand Down

0 comments on commit 03d6d85

Please sign in to comment.