Skip to content

Commit

Permalink
PreviewOptions: remove chevron from button.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebulanStanphill committed Apr 2, 2020
1 parent 4b8d1f8 commit 15353cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
14 changes: 0 additions & 14 deletions packages/edit-post/src/components/preview-options/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,12 @@ import {
Icon,
MenuGroup,
MenuItem,
Path,
SVG,
} from '@wordpress/components';
import { useSelect, useDispatch } from '@wordpress/data';
import { PostPreviewButton } from '@wordpress/editor';
import { __ } from '@wordpress/i18n';
import { external, check } from '@wordpress/icons';

const downArrow = (
<SVG
width="24"
height="24"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
>
<Path d="M12.3 16.1l-5.8-5.6 1-1 4.7 4.4 4.3-4.4 1 1z" />
</SVG>
);

export default function PreviewOptions( {
forceIsAutosaveable,
forcePreviewLink,
Expand Down Expand Up @@ -67,7 +54,6 @@ export default function PreviewOptions( {
disabled={ ! isSaveable }
>
{ __( 'Preview' ) }
{ downArrow }
</Button>
) }
renderContent={ () => (
Expand Down
6 changes: 1 addition & 5 deletions packages/edit-post/src/components/preview-options/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@
.editor-post-preview__button-toggle {
display: flex;
justify-content: space-between;
padding: 0 $grid-unit-10 0 $grid-unit-15;
padding: 0 $grid-unit-15;

&:focus:not(:disabled) {
box-shadow: inset 0 0 0 1px $white, 0 0 0 $border-width-focus $theme-color;
}

svg {
margin-left: $grid-unit-05;
}
}

.editor-post-preview__button-resize.editor-post-preview__button-resize {
Expand Down

0 comments on commit 15353cf

Please sign in to comment.