You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Revised `blockquote` and WordPress Quote and Pullquote block styles to address issues of consistency and improve feature support. Content that relied on previous quote styles may need to be reviewed or updated.
The pullquote block wraps a `blockquote` element in a `figure` element with the class
537
-
`wp-block-pullquote`.
536
+
## Quote
538
537
539
-
[Color controls](#color-settings) allow the setting of pre-defined or custom `background-color` and
540
-
text `color`. A styles control adds one of two wrapper classes, `is-style-default` or
541
-
`is-style-solid-color`. By default, any user-selected `background-color` will be
542
-
applied only if the solid color background is toggled on.
538
+
The quote block adds a class of `wp-block-quote` directly to a `blockquote` element. It supports background and text colors as well as text alignment, but not general alignment options. It may or may not include a citation.
<p>One of the hardest things to do in technology is disrupt yourself.</p>
549
-
<cite>Matt Mullenweg</cite>
550
-
</blockquote>
551
-
</figure>`}
541
+
<Story
542
+
name="Quote"
543
+
args={{
544
+
show_citation: true,
545
+
has_background: false,
546
+
}}
547
+
argTypes={{
548
+
show_citation: {
549
+
control: { type: 'boolean' },
550
+
},
551
+
style: {
552
+
options: ['default', 'plain'],
553
+
control: { type: 'select' },
554
+
},
555
+
has_background: {
556
+
control: { type: 'boolean' },
557
+
},
558
+
text_align: {
559
+
options: ['left', 'center', 'right'],
560
+
control: { type: 'select' },
561
+
},
562
+
}}
563
+
>
564
+
{(args) =>blockQuoteDemo(args)}
552
565
</Story>
553
566
</Canvas>
554
567
555
-
## Quote
568
+
## Pullquote
556
569
557
-
The quote block adds class of `wp-block-quote` directly to a `blockquote` element.
558
-
It has a control to add an optional `is-style-large` class.
570
+
The pullquote block wraps a `blockquote` element in a `figure` element with the class
571
+
`wp-block-pullquote`.
572
+
573
+
Its visual appearance is more opinionated than the quote block, and it supports more alignment options (such as floating or breaking out of the containing element).
<p>In case of conflict, consider users over authors over implementors over specifiers over theoretical purity.</p>
13
+
{% ifshow_citation %}
14
+
<cite><ahref="https://www.w3.org/TR/html-design-principles/#priority-of-constituencies">HTML Design Principles Priority of Constituencies</a></cite>
15
+
{% endif %}
16
+
</blockquote>
17
+
</figure>
18
+
19
+
<p>
20
+
This content follows the pullquote. Notice how the pullquote has more margin than usual.
21
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<p><b>CSS Grid Layout</b> excels at dividing a page into major regions or defining the relationship in terms of size, position, and layer, between parts of a control built from HTML primitives.</p>
7
+
<p>Like tables, grid layout enables an author to align elements into columns and rows. However, many more layouts are either possible or easier with CSS grid than they were with tables. For example, a grid container's child elements could position themselves so they actually overlap and layer, similar to CSS positioned elements.</p>
8
+
{% ifshow_citation %}
9
+
<cite><ahref="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout">MDN Web Docs</a></cite>
0 commit comments