Skip to content

Commit

Permalink
Adds a heading to the block inserters tips (#22863) (#22898)
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Todt <[email protected]>
  • Loading branch information
gaambo and Fabian Todt authored Jun 5, 2020
1 parent 6a90f56 commit 23ef20f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/block-editor/src/components/inserter/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { includes } from 'lodash';
*/
import { useState } from '@wordpress/element';
import { LEFT, RIGHT, UP, DOWN, BACKSPACE, ENTER } from '@wordpress/keycodes';
import { TabPanel } from '@wordpress/components';
import { TabPanel, VisuallyHidden } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import { useSelect } from '@wordpress/data';

Expand Down Expand Up @@ -92,6 +92,9 @@ function InserterMenu( {
</div>
{ showInserterHelpPanel && (
<div className="block-editor-inserter__tips">
<VisuallyHidden as="h2">
{ __( 'A tip for using the block editor' ) }
</VisuallyHidden>
<Tips />
</div>
) }
Expand Down

0 comments on commit 23ef20f

Please sign in to comment.