Skip to content

Commit

Permalink
Add block gap support to Quote block. (#56064)
Browse files Browse the repository at this point in the history
* Add block gap support to Quote block.

* Change cite display in front end to match editor styles

* Target only direct descentants
  • Loading branch information
tellthemachines authored Nov 13, 2023
1 parent 4e26178 commit 7d606b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Ju

- **Name:** core/quote
- **Category:** text
- **Supports:** anchor, color (background, gradients, heading, link, text), layout (~~allowEditing~~), typography (fontSize, lineHeight), ~~html~~
- **Supports:** anchor, color (background, gradients, heading, link, text), layout (~~allowEditing~~), spacing (blockGap), typography (fontSize, lineHeight), ~~html~~
- **Attributes:** align, citation, value

## Read More
Expand Down
3 changes: 3 additions & 0 deletions packages/block-library/src/quote/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
},
"layout": {
"allowEditing": false
},
"spacing": {
"blockGap": true
}
},
"styles": [
Expand Down
4 changes: 4 additions & 0 deletions packages/block-library/src/quote/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@
font-size: 1.125em;
text-align: right;
}

}
> cite {
display: block;
}
}

1 comment on commit 7d606b6

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 7d606b6.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6846172482
📝 Reported issues:

Please sign in to comment.