Skip to content

Commit

Permalink
Add missing label for the level dropdown menu
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Jun 7, 2019
1 parent acbd683 commit f87915e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/heading/heading-toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class HeadingToolbar extends Component {
controls={ range( minLevel, maxLevel ).map( ( index ) => this.createLevelControl( index, selectedLevel, onChange ) ) }
icon="heading"
isCollapsed={ ! isLargeViewport }
label={ __( 'Change level' ) }
/>
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/fixtures/block-transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export const EXPECTED_TRANSFORMS = {
originalBlock: 'Group',
availableTransforms: [],
},
'core__heading__h2-em': {
'core__heading__h4-em': {
originalBlock: 'Heading',
availableTransforms: [
'Quote',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ exports[`Block transforms correctly transform block Heading in fixture core__hea
<!-- /wp:quote -->"
`;
exports[`Block transforms correctly transform block Heading in fixture core__heading__h2-em into the Paragraph block 1`] = `
exports[`Block transforms correctly transform block Heading in fixture core__heading__h4-em into the Paragraph block 1`] = `
"<!-- wp:paragraph -->
<p>The <em>Inserter</em> Tool</p>
<!-- /wp:paragraph -->"
`;
exports[`Block transforms correctly transform block Heading in fixture core__heading__h2-em into the Quote block 1`] = `
exports[`Block transforms correctly transform block Heading in fixture core__heading__h4-em into the Quote block 1`] = `
"<!-- wp:quote -->
<blockquote class=\\"wp-block-quote\\"><p>The <em>Inserter</em> Tool</p></blockquote>
<!-- /wp:quote -->"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports[`Heading can be created by prefixing number sign and a space 1`] = `
`;

exports[`Heading it should correctly apply custom colors 1`] = `
"<!-- wp:heading {\\"level\\":3,\\"customTextColor\\":\\"#181717\\"} -->
"<!-- wp:heading {\\"customTextColor\\":\\"#181717\\",\\"level\\":3} -->
<h3 style=\\"color:#181717\\">Heading</h3>
<!-- /wp:heading -->"
`;
Expand Down

0 comments on commit f87915e

Please sign in to comment.