Skip to content

Commit

Permalink
Try: tertiary buttons for media placeholder, with tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen authored and Joen Asmussen committed Feb 20, 2020
1 parent 9734b48 commit 3f82e61
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export class MediaPlaceholder extends Component {
className="block-editor-media-placeholder__button"
onClick={ this.openURLInput }
isPressed={ isURLInputVisible }
isSecondary
isTertiary
>
{ __( 'Insert from URL' ) }
</Button>
Expand Down Expand Up @@ -319,7 +319,7 @@ export class MediaPlaceholder extends Component {
render={ ( { open } ) => {
return (
<Button
isSecondary
isTertiary
onClick={ ( event ) => {
event.stopPropagation();
open();
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/cover/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
}

.wp-block-cover__placeholder-background-options {
margin-top: 1em;
width: 100%;
}

Expand Down
1 change: 1 addition & 0 deletions packages/components/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
white-space: nowrap;
color: $theme-color;
background: transparent;
padding: 6px; // This reduces the horizontal padding on tertiary/text buttons, so as to space them optically.

.dashicon {
display: inline-block;
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/placeholder/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
.components-placeholder__label {
display: flex;
font-weight: 600;
margin-bottom: 1em;
margin-bottom: 1.5em;

> svg,
.dashicon,
Expand Down

0 comments on commit 3f82e61

Please sign in to comment.