Skip to content

Commit

Permalink
Add typography support to time to read block
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Mar 22, 2023
1 parent 030be65 commit f7b4e29
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
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ Show minutes required to finish reading the post. ([Source](https://github.com/W

- **Name:** core/post-time-to-read
- **Category:** theme
- **Supports:** ~~html~~, ~~multiple~~
- **Supports:** typography (fontSize, lineHeight), ~~html~~, ~~multiple~~
- **Attributes:** textAlign

## Post Title
Expand Down
15 changes: 14 additions & 1 deletion packages/block-library/src/post-time-to-read/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@
},
"supports": {
"html": false,
"multiple": false
"multiple": false,
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
}
}
}

0 comments on commit f7b4e29

Please sign in to comment.