Skip to content

Commit

Permalink
Block Style: Display default style labels correctly in the block sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Oct 3, 2023
1 parent 140d04e commit 7abb883
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/block-editor/src/components/block-styles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
Popover,
} from '@wordpress/components';
import deprecated from '@wordpress/deprecated';
import { __ } from '@wordpress/i18n';

/**
* Internal dependencies
Expand Down Expand Up @@ -65,9 +64,7 @@ function BlockStyles( { clientId, onSwitch = noop, onHoverClassName = noop } ) {
<div className="block-editor-block-styles">
<div className="block-editor-block-styles__variants">
{ stylesToRender.map( ( style ) => {
const buttonText = style.isDefault
? __( 'Default' )
: style.label || style.name;
const buttonText = style.label || style.name;

return (
<Button
Expand Down

0 comments on commit 7abb883

Please sign in to comment.