Skip to content

Commit c55fc73

Browse files
aaronrobertshawshail-mehta
authored andcommitted
Accordion Heading: Add line height support (WordPress#83958)
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org> Co-authored-by: shail-mehta <shailu25@git.wordpress.org>
1 parent 51df156 commit c55fc73

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎docs/reference-guides/core-blocks/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Displays a heading that toggles the accordion panel.
3535
- **Name:** [core/accordion-heading](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/core-block-accordion-heading/)
3636
- **Category:** [design](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/)
3737
- **Parent:** core/accordion-item
38-
- **Supports:** anchor, color (background, gradients, text), interactivity, shadow, spacing (padding), typography (fontSize), ~~align~~, ~~lock~~, ~~visibility~~
38+
- **Supports:** anchor, color (background, gradients, text), interactivity, shadow, spacing (padding), typography (fontSize, lineHeight), ~~align~~, ~~lock~~, ~~visibility~~
3939
- **Attributes:** iconPosition, level, openByDefault, showIcon, title
4040

4141
## Accordion Item

‎packages/block-library/src/accordion-heading/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
3939
- `padding`: `true`
4040
- [`typography`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography):
4141
- [`fontSize`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-fontsize): `true`
42+
- [`lineHeight`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-lineheight): `true`
4243
- [`shadow`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#shadow): `true`
4344
- [`visibility`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#visibility): `false`
4445
- [`lock`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#lock): `false`

‎packages/block-library/src/accordion-heading/block.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"letterSpacing"
4646
],
4747
"fontSize": true,
48+
"lineHeight": true,
4849
"__experimentalFontFamily": true,
4950
"__experimentalFontWeight": true,
5051
"__experimentalFontStyle": true,

0 commit comments

Comments
 (0)