Skip to content

Commit f878ba2

Browse files
List Item: Adopt typography supports
1 parent e5154c9 commit f878ba2

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

docs/reference-guides/core-blocks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ Create a list item. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/
347347

348348
- **Name:** core/list-item
349349
- **Category:** text
350-
- **Supports:** ~~className~~
350+
- **Supports:** typography (fontSize, lineHeight), ~~className~~
351351
- **Attributes:** content, placeholder
352352

353353
## Login/out

packages/block-library/src/list-item/block.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,19 @@
2222
},
2323
"supports": {
2424
"className": false,
25-
"__experimentalSelector": "li"
25+
"__experimentalSelector": "li",
26+
"typography": {
27+
"fontSize": true,
28+
"lineHeight": true,
29+
"__experimentalFontFamily": true,
30+
"__experimentalFontWeight": true,
31+
"__experimentalFontStyle": true,
32+
"__experimentalTextTransform": true,
33+
"__experimentalTextDecoration": true,
34+
"__experimentalLetterSpacing": true,
35+
"__experimentalDefaultControls": {
36+
"fontSize": true
37+
}
38+
}
2639
}
2740
}

0 commit comments

Comments
 (0)