Skip to content

Commit

Permalink
List Item: Adopt typography supports (#43312)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw authored Oct 18, 2022
1 parent 4c7d3e4 commit 8a5ccdf
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 @@ -21,6 +21,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 8a5ccdf

Please sign in to comment.