Skip to content
Closed
Show file tree
Hide file tree
Changes from 52 commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
af2a025
Adding the `.wp-block-paragraph` class to the paragraph block.
juanfra Jan 19, 2023
e558a1d
Fix tests and snapshots for #46863
juanfra Jan 19, 2023
acc7eaa
Fix tests for https://github.com/WordPress/gutenberg/pull/47282
juanfra Jan 23, 2023
87b1ed8
Update tests and snapshots to work with `wp-block-paragraph` class, u…
juanfra Jan 23, 2023
90c78e8
Merge branch 'master' into fix/46863
juanfra Jan 24, 2023
b24b59c
Fix tests and snapshots.
juanfra Jan 24, 2023
2d4e2b4
Merge branch 'master' into fix/46863
juanfra Feb 2, 2023
9bed42e
Fix test for the new paragraph block class.
juanfra Feb 2, 2023
1a1448c
Update snapshots.
juanfra Feb 2, 2023
759987a
Update tests and snapshots.
juanfra Feb 3, 2023
d5fb24e
Fix snapshots, remove code from merge.
juanfra Feb 3, 2023
745d238
Update snapshots.
juanfra Feb 3, 2023
c4d3196
Update the page click, so that it doesn't take the middle of the bloc…
juanfra Feb 3, 2023
28a828d
Merge branch 'master' into fix/46863
juanfra Mar 1, 2023
caf4c99
Merge branch 'master' into fix/46863
juanfra Mar 7, 2023
25f0537
Update tests and snapshots.
juanfra Mar 7, 2023
a3e75d3
Update snapshots.
juanfra Mar 7, 2023
ab4b0ae
Fix merge conflict.
juanfra Mar 7, 2023
1b8a9c3
Update tests and snapshots.
juanfra Mar 7, 2023
9e20c02
update initial html for react native editor.
juanfra Mar 7, 2023
5901620
Fix native test.
juanfra Mar 7, 2023
8f8a07f
Fix `serialize-raw-block` tests.
juanfra Mar 7, 2023
c39abb2
Merge branch 'master' into fix/46863
juanfra Mar 15, 2023
6762e2c
Update snapshots.
juanfra Mar 15, 2023
ae191eb
Merge branch 'master' into fix/46863
juanfra Mar 16, 2023
ee6286e
Merge branch 'master' into fix/46863
juanfra Mar 17, 2023
5ec63ae
Update tests and snapshots.
juanfra Mar 17, 2023
d8c527d
Fix old merge conflict.
juanfra Mar 17, 2023
0c253c5
Update native initial HTML to include the `wp-block-paragraph` class.
juanfra Mar 17, 2023
115baa8
Merge branch 'WordPress:trunk' into fix/46863
Mar 17, 2023
7fc8781
Merge branch 'master' into fix/46863
juanfra Apr 27, 2023
651519e
Update snapshots after merge.
juanfra Apr 27, 2023
9ee2654
Merge branch 'master' into fix/46863
juanfra May 4, 2023
256fd38
Merge branch 'master' into fix/46863
juanfra Aug 17, 2023
c7878ab
Fix typo from merge conflict.
juanfra Aug 17, 2023
92f8962
Fix typo from merge conflict.
juanfra Aug 17, 2023
a1f89be
Update fixture.
juanfra Aug 17, 2023
5160d4b
Fix tests for using the `wp-block-paragraph` class.
juanfra Aug 17, 2023
03c8e15
Merge branch 'master' into fix/46863
juanfra Aug 22, 2023
9059505
Merge branch 'master' into fix/46863
juanfra Aug 23, 2023
42c9320
Remove the click, as the element is already focused. And the click fu…
juanfra Aug 23, 2023
6676a43
Merge branch 'trunk' into fix/46863
t-hamano Jun 24, 2025
158a015
Adjustment of final newline
t-hamano Jun 24, 2025
90ef94a
Fix some unit tests
t-hamano Jun 24, 2025
a360f37
Fix e2e tests
t-hamano Jun 24, 2025
b292cde
Add @since tag
t-hamano Jun 24, 2025
12fd1fe
Fix mobile unit tests
t-hamano Jun 24, 2025
b5aedaf
Add missing block class
t-hamano Jun 24, 2025
d77eab2
Fix various test failures
t-hamano Jun 24, 2025
5c04f77
Regenerate fixtures
t-hamano Jun 24, 2025
101fa96
Fix e2e test
t-hamano Jun 24, 2025
201a25a
Restoring unintentionally commented out E2E tests
t-hamano Jun 24, 2025
e9050c5
Standardize HTML tag processor logic
t-hamano Jun 28, 2025
d9a0ec7
HTML tag processor: restore previous logic
t-hamano Jun 28, 2025
abd96d1
Restandardizing HTML tag processor logic
t-hamano Jun 30, 2025
c1d18ec
Merge branch 'trunk' into fix/46863
t-hamano Jun 30, 2025
8d5adf1
Merge branch 'trunk' into fix/46863
t-hamano Aug 14, 2025
94a06ed
Disable className support
t-hamano Aug 14, 2025
d3ccc19
Remove wp-block-paragraph CSS class
t-hamano Aug 14, 2025
7f0a4c6
Revert "Remove wp-block-paragraph CSS class"
t-hamano Aug 14, 2025
e96b7a6
Revert "Disable className support"
t-hamano Aug 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion docs/contributors/code/e2e/overusing-snapshots.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Due to the lack of inline snapshots in Playwright, some migrated tests are using

```js
expect( await editor.getEditedPostContent() ).toBe( `<!-- wp:paragraph -->
<p>Paragraph</p>
<p class="wp-block-paragraph">Paragraph</p>
<!-- /wp:paragraph -->` );
```

Expand Down
2 changes: 1 addition & 1 deletion docs/explanations/architecture/key-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Blocks understand content as attributes and are serializable to HTML. To this po

```html
<!-- wp:paragraph {"key": "value"} -->
<p>Welcome to the world of blocks.</p>
<p class="wp-block-paragraph">Welcome to the world of blocks.</p>
<!-- /wp:paragraph -->
```

Expand Down
4 changes: 2 additions & 2 deletions docs/explanations/architecture/styles.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Since the introduction of the block editor in WordPress 5.0, there were tools fo
By default, blocks come with a given HTML markup. Think of the paragraph block, for example:

```html
<p></p>
<p class="wp-block-paragraph"></p>
```

In its simplest form, any style rule that targets the `p` selector will apply styles to this block, whether it comes from a block, a theme, etc.
Expand All @@ -37,7 +37,7 @@ The user may change the state of this block by applying different styles: a text
After some user modifications to the block, the initial markup may become something like this:

```html
<p class="has-color has-green-color has-font-size has-small-font-size my-custom-class"
<p class="wp-block-paragraph has-color has-green-color has-font-size has-small-font-size my-custom-class"
style="line-height: 1em"></p>
```

Expand Down
1 change: 1 addition & 0 deletions docs/getting-started/fundamentals/block-wrapper.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ When you add `supports` for any feature, the proper classes get added to the obj

```html
<p class="
wp-block-paragraph
wp-block-block-development-examples-block-supports-6aa4dd
has-accent-4-color
has-contrast-background-color
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ Compare this to a statically rendered block like the Paragraph block.

```html
<!-- wp:paragraph -->
<p>This is a test.</p>
<p class="wp-block-paragraph">This is a test.</p>
<!-- /wp:paragraph -->
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ To opt into this, include `core/post-content` in the Block Types for your patter
<!-- /wp:heading -->

<!-- wp:paragraph {"lock":{"move":true,"remove":true}} -->
<p>To RSVP, please join the #fse-outreach-experiment in Make Slack. </p>
<p class="wp-block-paragraph">To RSVP, please join the #fse-outreach-experiment in Make Slack. </p>
<!-- /wp:paragraph -->

<!-- wp:buttons -->
Expand All @@ -43,7 +43,7 @@ To opt into this, include `core/post-content` in the Block Types for your patter

<!-- wp:cover {"useFeaturedImage":true,"dimRatio":80,"overlayColor":"primary","contentPosition":"center center","align":"full"} -->
<div class="wp-block-cover alignfull"><span aria-hidden="true" class="wp-block-cover__background has-primary-background-color has-background-dim-80 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","placeholder":"Write title…","fontSize":"large"} -->
<p class="has-text-align-center has-large-font-size">We hope to see you there!</p>
<p class="wp-block-paragraph has-text-align-center has-large-font-size">We hope to see you there!</p>
<!-- /wp:paragraph --></div></div>
<!-- /wp:cover -->
```
Expand All @@ -62,7 +62,7 @@ register_block_pattern(
array(
'title' => __( '404 Only template pattern', 'wp-my-theme' ),
'templateTypes' => array( '404' ),
'content' => '<!-- wp:paragraph {"align":"center","fontSize":"x-large"} --><p class="has-text-align-center has-x-large-font-size">404 pattern</p><!-- /wp:paragraph -->',
'content' => '<!-- wp:paragraph {"align":"center","fontSize":"x-large"} --><p class="wp-block-paragraph has-text-align-center has-x-large-font-size">404 pattern</p><!-- /wp:paragraph -->',
)
);
```
Expand All @@ -87,4 +87,4 @@ The content creator will then find the respective Pattern in the inserter “Pat

## Additional resources

- [Using template patterns to build multiple homepage designs](https://developer.wordpress.org/news/2023/04/13/using-template-patterns-to-build-multiple-homepage-designs/) (WordPress Developer Blog)
- [Using template patterns to build multiple homepage designs](https://developer.wordpress.org/news/2023/04/13/using-template-patterns-to-build-multiple-homepage-designs/) (WordPress Developer Blog)
2 changes: 1 addition & 1 deletion docs/how-to-guides/platform/custom-block-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ If you open DeveloperTools and inspect the LocalStorage you will see serialized
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>This is an experiment to discover how easy (or otherwise) it is to create a standalone instance of the Block Editor in the WordPress admin.</p>
<p class="wp-block-paragraph">This is an experiment to discover how easy (or otherwise) it is to create a standalone instance of the Block Editor in the WordPress admin.</p>
<!-- /wp:paragraph -->
```

Expand Down
4 changes: 2 additions & 2 deletions docs/reference-guides/block-api/block-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ register_block_pattern(
'title' => __( 'Powered by WordPress', 'my-plugin' ),
'blockTypes' => array( 'core/paragraph' ),
'content' => '<!-- wp:paragraph {"backgroundColor":"black","textColor":"white"} -->
<p class="has-white-color has-black-background-color has-text-color has-background">Powered by WordPress</p>
<p class="wp-block-paragraph has-white-color has-black-background-color has-text-color has-background">Powered by WordPress</p>
<!-- /wp:paragraph -->',
)
);
Expand All @@ -174,7 +174,7 @@ register_block_pattern(
<h2 class="has-large-font-size"><span style="color:#ba0c49" class="has-inline-color">Hi everyone</span></h2>
<!-- /wp:heading -->
<!-- wp:paragraph {"backgroundColor":"black","textColor":"white"} -->
<p class="has-white-color has-black-background-color has-text-color has-background">Powered by WordPress</p>
<p class="wp-block-paragraph has-white-color has-black-background-color has-text-color has-background">Powered by WordPress</p>
<!-- /wp:paragraph -->
</div><!-- /wp:group -->',
)
Expand Down
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ Start with the basic building block of all narrative. ([Source](https://github.c

- **Name:** core/paragraph
- **Category:** text
- **Supports:** __unstablePasteTextInline, anchor, color (background, gradients, link, text), interactivity (clientNavigation), spacing (margin, padding), splitting, typography (fontSize, lineHeight), ~~className~~
- **Supports:** __unstablePasteTextInline, anchor, color (background, gradients, link, text), interactivity (clientNavigation), spacing (margin, padding), splitting, typography (fontSize, lineHeight)
- **Attributes:** align, content, direction, dropCap, placeholder

## Pattern Placeholder
Expand Down
1 change: 1 addition & 0 deletions lib/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ function gutenberg_reregister_core_block_types() {
'navigation-link.php' => 'core/navigation-link',
'navigation-submenu.php' => 'core/navigation-submenu',
'page-list.php' => 'core/page-list',
'paragraph.php' => 'core/paragraph',
'page-list-item.php' => 'core/page-list-item',
'pattern.php' => 'core/pattern',
'post-author.php' => 'core/post-author',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`BlockDraggable moves blocks: Initial order 1`] = `
"<!-- wp:paragraph -->
<p>This is a paragraph.</p>
<p class="wp-block-paragraph">This is a paragraph.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"sizeSlug":"large"} -->
Expand Down Expand Up @@ -30,7 +30,7 @@ exports[`BlockDraggable moves blocks: Paragraph block moved from first to second
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>This is a paragraph.</p>
<p class="wp-block-paragraph">This is a paragraph.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer -->
Expand Down Expand Up @@ -58,7 +58,7 @@ exports[`BlockDraggable moves blocks: Spacer block moved from third to first pos
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>This is a paragraph.</p>
<p class="wp-block-paragraph">This is a paragraph.</p>
<!-- /wp:paragraph -->

<!-- wp:gallery {"linkTo":"none"} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const BLOCKS = [
name: 'Paragraph',
html: `
<!-- wp:paragraph -->
<p>This is a paragraph.</p>
<p class="wp-block-paragraph">This is a paragraph.</p>
<!-- /wp:paragraph -->`,
layout: { x: 0, y: 0, width: 100, height: 100 },
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Block Mover Picker moving blocks disables the Move Down button for the last block 1`] = `
"<!-- wp:paragraph -->
<p>Hello!</p>
<p class="wp-block-paragraph">Hello!</p>
<!-- /wp:paragraph -->

<!-- wp:spacer -->
Expand All @@ -16,7 +16,7 @@ exports[`Block Mover Picker moving blocks disables the Move Down button for the

exports[`Block Mover Picker moving blocks disables the Move Up button for the first block 1`] = `
"<!-- wp:paragraph -->
<p>Hello!</p>
<p class="wp-block-paragraph">Hello!</p>
<!-- /wp:paragraph -->

<!-- wp:spacer -->
Expand All @@ -34,7 +34,7 @@ exports[`Block Mover Picker moving blocks moves blocks up and down 1`] = `
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Hello!</p>
<p class="wp-block-paragraph">Hello!</p>
<!-- /wp:paragraph -->

<!-- wp:spacer -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ export default [
},
innerBlocks: [],
originalContent:
'<p class="has-text-align-right has-black-color has-text-color" style="font-size:148px;font-style:normal;font-weight:700;letter-spacing:-4px;line-height:0.8;text-transform:uppercase">Let<br>\'EM<br>Roll</p>',
'<p class="wp-block-paragraph has-text-align-right has-black-color has-text-color" style="font-size:148px;font-style:normal;font-weight:700;letter-spacing:-4px;line-height:0.8;text-transform:uppercase">Let<br>\'EM<br>Roll</p>',
validationIssues: [],
},
{
Expand All @@ -410,7 +410,7 @@ export default [
},
innerBlocks: [],
originalContent:
'<p class="has-text-align-right has-white-color has-text-color" style="font-size:148px;font-style:normal;font-weight:700;letter-spacing:-4px;line-height:0.8;text-transform:uppercase">Big<br>John<br>Patton</p>',
'<p class="wp-block-paragraph has-text-align-right has-white-color has-text-color" style="font-size:148px;font-style:normal;font-weight:700;letter-spacing:-4px;line-height:0.8;text-transform:uppercase">Big<br>John<br>Patton</p>',
validationIssues: [],
},
],
Expand Down Expand Up @@ -500,7 +500,7 @@ export default [
},
innerBlocks: [],
originalContent:
'<p class="has-text-color" style="color:#000000;font-size:30px;line-height:1.1"><strong>Oceanic Inspiration</strong></p>',
'<p class="wp-block-paragraph has-text-color" style="color:#000000;font-size:30px;line-height:1.1"><strong>Oceanic Inspiration</strong></p>',
validationIssues: [],
},
],
Expand Down Expand Up @@ -592,7 +592,7 @@ export default [
},
innerBlocks: [],
originalContent:
'<p class="has-text-color has-extra-small-font-size" style="color:#000000">Winding veils round their heads, the women walked on deck. They were now moving steadily down the river, passing the dark shapes of ships at anchor, and London was a swarm of lights with a pale yellow canopy drooping above it. There were the lights of the great theatres, the lights of the long streets, lights that indicated huge squares of domestic comfort, lights that hung high in air.</p>',
'<p class="wp-block-paragraph has-text-color has-extra-small-font-size" style="color:#000000">Winding veils round their heads, the women walked on deck. They were now moving steadily down the river, passing the dark shapes of ships at anchor, and London was a swarm of lights with a pale yellow canopy drooping above it. There were the lights of the great theatres, the lights of the long streets, lights that indicated huge squares of domestic comfort, lights that hung high in air.</p>',
validationIssues: [],
},
],
Expand Down Expand Up @@ -625,7 +625,7 @@ export default [
},
innerBlocks: [],
originalContent:
'<p class="has-text-color has-extra-small-font-size" style="color:#000000">No darkness would ever settle upon those lamps, as no darkness had settled upon them for hundreds of years. It seemed dreadful that the town should blaze for ever in the same spot; dreadful at least to people going away to adventure upon the sea, and beholding it as a circumscribed mound, eternally burnt, eternally scarred. From the deck of the ship the great city appeared a crouched and cowardly figure, a sedentary miser.</p>',
'<p class="wp-block-paragraph has-text-color has-extra-small-font-size" style="color:#000000">No darkness would ever settle upon those lamps, as no darkness had settled upon them for hundreds of years. It seemed dreadful that the town should blaze for ever in the same spot; dreadful at least to people going away to adventure upon the sea, and beholding it as a circumscribed mound, eternally burnt, eternally scarred. From the deck of the ship the great city appeared a crouched and cowardly figure, a sedentary miser.</p>',
validationIssues: [],
},
],
Expand Down Expand Up @@ -737,7 +737,7 @@ export default [
},
innerBlocks: [],
originalContent:
'<p class="has-text-align-left has-black-color has-text-color" style="font-size:148px;font-style:normal;font-weight:700;letter-spacing:-2px;line-height:0.9;text-transform:uppercase"><mark style="color:#a65a00" class="has-inline-color">✴︎</mark> Walk</p>',
'<p class="wp-block-paragraph has-text-align-left has-black-color has-text-color" style="font-size:148px;font-style:normal;font-weight:700;letter-spacing:-2px;line-height:0.9;text-transform:uppercase"><mark style="color:#a65a00" class="has-inline-color">✴︎</mark> Walk</p>',
validationIssues: [],
},
{
Expand All @@ -763,7 +763,7 @@ export default [
},
innerBlocks: [],
originalContent:
'<p class="has-text-align-right has-black-color has-text-color" style="font-size:148px;font-style:normal;font-weight:700;letter-spacing:-2px;line-height:0.9;text-transform:uppercase">In the</p>',
'<p class="wp-block-paragraph has-text-align-right has-black-color has-text-color" style="font-size:148px;font-style:normal;font-weight:700;letter-spacing:-2px;line-height:0.9;text-transform:uppercase">In the</p>',
validationIssues: [],
},
{
Expand All @@ -789,7 +789,7 @@ export default [
},
innerBlocks: [],
originalContent:
'<p class="has-text-align-left has-black-color has-text-color" style="font-size:148px;font-style:normal;font-weight:700;letter-spacing:-2px;line-height:0.9;text-transform:uppercase">Park</p>',
'<p class="wp-block-paragraph has-text-align-left has-black-color has-text-color" style="font-size:148px;font-style:normal;font-weight:700;letter-spacing:-2px;line-height:0.9;text-transform:uppercase">Park</p>',
validationIssues: [],
},
{
Expand Down Expand Up @@ -817,7 +817,7 @@ export default [
},
innerBlocks: [],
originalContent:
'<p class="has-text-align-center has-text-color" style="color:#a65a00;font-size:140px;font-style:italic;font-weight:200;letter-spacing:0px;line-height:0.9;text-transform:uppercase">—01.03</p>',
'<p class="wp-block-paragraph has-text-align-center has-text-color" style="color:#a65a00;font-size:140px;font-style:italic;font-weight:200;letter-spacing:0px;line-height:0.9;text-transform:uppercase">—01.03</p>',
validationIssues: [],
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Block Actions Menu block options copies and pastes a block 1`] = `
"<!-- wp:paragraph -->
<p>Hello!</p>
<p class="wp-block-paragraph">Hello!</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
Expand All @@ -28,13 +28,13 @@ exports[`Block Actions Menu block options cuts and pastes a block 1`] = `
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Hello!</p>
<p class="wp-block-paragraph">Hello!</p>
<!-- /wp:paragraph -->"
`;

exports[`Block Actions Menu block options does not replace a non empty Paragraph block when pasting another block 1`] = `
"<!-- wp:paragraph -->
<p>Hello!</p>
<p class="wp-block-paragraph">Hello!</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
Expand All @@ -52,7 +52,7 @@ exports[`Block Actions Menu block options does not replace a non empty Paragraph

exports[`Block Actions Menu block options duplicates a block 1`] = `
"<!-- wp:paragraph -->
<p>Hello!</p>
<p class="wp-block-paragraph">Hello!</p>
<!-- /wp:paragraph -->

<!-- wp:spacer -->
Expand Down Expand Up @@ -84,7 +84,7 @@ exports[`Block Actions Menu block options transforms a Paragraph block into a Pu

exports[`Block Actions Menu moving blocks disables the Move Down button for the last block 1`] = `
"<!-- wp:paragraph -->
<p>Hello!</p>
<p class="wp-block-paragraph">Hello!</p>
<!-- /wp:paragraph -->

<!-- wp:spacer -->
Expand All @@ -98,7 +98,7 @@ exports[`Block Actions Menu moving blocks disables the Move Down button for the

exports[`Block Actions Menu moving blocks disables the Move Up button for the first block 1`] = `
"<!-- wp:paragraph -->
<p>Hello!</p>
<p class="wp-block-paragraph">Hello!</p>
<!-- /wp:paragraph -->

<!-- wp:spacer -->
Expand All @@ -116,7 +116,7 @@ exports[`Block Actions Menu moving blocks moves blocks up and down 1`] = `
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Hello!</p>
<p class="wp-block-paragraph">Hello!</p>
<!-- /wp:paragraph -->

<!-- wp:spacer -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe( 'Block Actions Menu', () => {
it( "renders the block name in the Picker's header", async () => {
const screen = await initializeEditor( {
initialHtml: `<!-- wp:paragraph -->
<p></p>
<p class="wp-block-paragraph"></p>
<!-- /wp:paragraph -->`,
} );
const { getByRole } = screen;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports[`Inserter can add blocks after another block 1`] = `
<!-- /wp:more -->

<!-- wp:paragraph -->
<p></p>
<p class="wp-block-paragraph"></p>
<!-- /wp:paragraph -->"
`;

Expand All @@ -34,7 +34,7 @@ exports[`Inserter can add blocks before another block 1`] = `
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p></p>
<p class="wp-block-paragraph"></p>
<!-- /wp:paragraph -->"
`;

Expand All @@ -48,7 +48,7 @@ exports[`Inserter can add blocks creates a new Paragraph block tapping on the em
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p></p>
<p class="wp-block-paragraph"></p>
<!-- /wp:paragraph -->"
`;

Expand Down Expand Up @@ -94,7 +94,7 @@ exports[`Inserter can add blocks to the beginning 1`] = `
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p></p>
<p class="wp-block-paragraph"></p>
<!-- /wp:paragraph -->"
`;

Expand All @@ -108,7 +108,7 @@ exports[`Inserter can add blocks to the end 1`] = `
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p></p>
<p class="wp-block-paragraph"></p>
<!-- /wp:paragraph -->

<!-- wp:more -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`<RichText/> when applying the font size renders component with style and font size 1`] = `
"<!-- wp:paragraph {"style":{"color":{"text":"#fcb900"},"typography":{"fontSize":35.56}}} -->
<p class="has-text-color" style="color:#fcb900;font-size:35.56px">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed imperdiet ut nibh vitae ornare. Sed auctor nec augue at blandit.</p>
<p class="wp-block-paragraph has-text-color" style="color:#fcb900;font-size:35.56px">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed imperdiet ut nibh vitae ornare. Sed auctor nec augue at blandit.</p>
<!-- /wp:paragraph -->"
`;

Expand Down
Loading
Loading