Skip to content

Commit

Permalink
Archives: Add typography support (#43935)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Sep 8, 2022
1 parent b9a2477 commit 0e473b5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Expand Up @@ -14,7 +14,7 @@ Display a date archive of your posts. ([Source](https://github.com/WordPress/gut

- **Name:** core/archives
- **Category:** widgets
- **Supports:** align, spacing (margin, padding), ~~html~~
- **Supports:** align, spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~
- **Attributes:** displayAsDropdown, showLabel, showPostCounts, type

## Audio
Expand Down
13 changes: 13 additions & 0 deletions packages/block-library/src/archives/block.json
Expand Up @@ -30,6 +30,19 @@
"spacing": {
"margin": true,
"padding": true
},
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
}
},
"editorStyle": "wp-block-archives-editor"
Expand Down

0 comments on commit 0e473b5

Please sign in to comment.