Skip to content

Commit

Permalink
Fix: Disabled block switcher icons are blurry (#15643)
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo authored May 16, 2019
1 parent bd2bdc6 commit b2629ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
5 changes: 2 additions & 3 deletions packages/block-editor/src/components/block-switcher/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ export class BlockSwitcher extends Component {
disabled
className="editor-block-switcher__no-switcher-icon block-editor-block-switcher__no-switcher-icon"
label={ __( 'Block icon' ) }
>
<BlockIcon icon={ icon } showColors />
</IconButton>
icon={ <BlockIcon icon={ icon } showColors /> }
/>
</Toolbar>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ exports[`BlockSwitcher should render disabled block switcher with multi block of
<ForwardRef(IconButton)
className="editor-block-switcher__no-switcher-icon block-editor-block-switcher__no-switcher-icon"
disabled={true}
icon={
<BlockIcon
icon="layout"
showColors={true}
/>
}
label="Block icon"
>
<BlockIcon
icon="layout"
showColors={true}
/>
</ForwardRef(IconButton)>
/>
</Toolbar>
`;

Expand Down

0 comments on commit b2629ce

Please sign in to comment.