Skip to content

Commit

Permalink
Add tooltip to the block list appender. (#13306)
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia authored and youknowriad committed Mar 6, 2019
1 parent 2d81e8d commit c4120bf
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/editor/src/components/block-list-appender/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { last } from 'lodash';
import { withSelect } from '@wordpress/data';
import { getDefaultBlockName } from '@wordpress/blocks';
import { __ } from '@wordpress/i18n';
import { Button, Dashicon } from '@wordpress/components';
import { IconButton } from '@wordpress/components';

/**
* Internal dependencies
Expand Down Expand Up @@ -44,16 +44,15 @@ function BlockListAppender( {
<Inserter
rootClientId={ rootClientId }
renderToggle={ ( { onToggle, disabled, isOpen } ) => (
<Button
aria-label={ __( 'Add block' ) }
<IconButton
label={ __( 'Add block' ) }
icon="insert"
onClick={ onToggle }
className="block-list-appender__toggle"
aria-haspopup="true"
aria-expanded={ isOpen }
disabled={ disabled }
>
<Dashicon icon="insert" />
</Button>
/>
) }
/>
</div>
Expand Down

0 comments on commit c4120bf

Please sign in to comment.