Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/block-editor/src/components/block-mover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,10 @@
@include block-toolbar-button-style__focus();
}
}

// Styles when the 'show button text labels' preference is enabled.
.show-icon-labels {
.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container {
width: auto;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@
.block-editor-block-toolbar__block-controls .block-editor-block-mover {
border-left: 1px solid $gray-900;
margin-left: 6px;
margin-right: -6px;
white-space: nowrap;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/post-featured-image/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function PostFeaturedImageDisplay( {
);
}

const label = __( 'Add a featured image' );
const label = __( 'Add image' );
const imageStyles = {
...borderProps.style,
height,
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/site-logo/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ export default function LogoEdit( {
className: classes,
} );

const label = __( 'Add a site logo' );
const label = __( 'Add image' );

return (
<div { ...blockProps }>
Expand Down
8 changes: 3 additions & 5 deletions packages/block-library/src/site-logo/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
margin-right: auto;
}

// Provide special styling for the placeholder.
// @todo: this particular minimal style of placeholder could be componentized further.
.wp-block-site-logo {
// Make the block selectable.
a {
Expand All @@ -28,11 +30,7 @@
height: auto;
max-width: 100%;
}
}

// Provide special styling for the placeholder.
// @todo: this particular minimal style of placeholder could be componentized further.
.wp-block-site-logo.wp-block-site-logo {
// Match the default logo size.
&.is-default-size .components-placeholder {
height: 120px;
Expand Down Expand Up @@ -73,7 +71,7 @@
}

// Style the upload button.
.components-button.components-button {
.components-button {
padding: 0;
display: flex;
justify-content: center;
Expand Down
18 changes: 18 additions & 0 deletions packages/components/src/placeholder/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,21 @@
stroke: currentColor;
opacity: 0.25;
}

// Styles when the 'show button text labels' preference is enabled.
.show-icon-labels {
.block-editor-media-placeholder .components-button.has-icon {
width: auto;
padding: 0 $grid-unit-10;
border-radius: 0;

svg {
display: none;
}

&::after {
content: attr(aria-label);
font-size: $helptext-font-size;
}
}
}
8 changes: 6 additions & 2 deletions packages/components/src/toolbar-group/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@
display: inline-flex;
flex-shrink: 0;
flex-wrap: wrap;
padding-left: $grid-unit-15 * 0.5; // 6px.
padding-right: $grid-unit-15 * 0.5;

// Consistent padding for all immediate children of the group.
> * {
padding-left: $grid-unit-15 * 0.5; // 6px.
padding-right: $grid-unit-15 * 0.5;
}

// Unset for nested toolbar groups. Increase specificity.
& .components-toolbar-group.components-toolbar-group {
Expand Down