Skip to content

Commit

Permalink
Used IconButton on breadcrumbs to increase accessibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Apr 24, 2018
1 parent e05a542 commit fe8cb22
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions editor/components/block-list/breadcrumb.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import classnames from 'classnames';
* WordPress dependencies
*/
import { compose, Component } from '@wordpress/element';
import { Dashicon, Tooltip, Toolbar, Button } from '@wordpress/components';
import { IconButton, Tooltip, Toolbar } from '@wordpress/components';
import { withDispatch, withSelect } from '@wordpress/data';
import { __ } from '@wordpress/i18n';

Expand Down Expand Up @@ -64,13 +64,13 @@ export class BlockBreadcrumb extends Component {
<Toolbar>
{ rootUID && (
<Tooltip text={ __( 'Select parent block' ) }>
<Button
<IconButton
onClick={ selectRootBlock }
onFocus={ this.onFocus }
onBlur={ this.onBlur }
>
<Dashicon icon="arrow-left-alt" uid={ uid } />
</Button>
label={ __( 'Select parent block' ) }
icon="arrow-left-alt"
/>
</Tooltip>
) }
<BlockTitle uid={ uid } />
Expand Down

0 comments on commit fe8cb22

Please sign in to comment.