Skip to content

Commit

Permalink
List Item: Adopt typography supports
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Aug 17, 2022
1 parent e5154c9 commit f878ba2
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 @@ -347,7 +347,7 @@ Create a list item. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/

- **Name:** core/list-item
- **Category:** text
- **Supports:** ~~className~~
- **Supports:** typography (fontSize, lineHeight), ~~className~~
- **Attributes:** content, placeholder

## Login/out
Expand Down
15 changes: 14 additions & 1 deletion packages/block-library/src/list-item/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@
},
"supports": {
"className": false,
"__experimentalSelector": "li"
"__experimentalSelector": "li",
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
}
}
}

0 comments on commit f878ba2

Please sign in to comment.