Skip to content

Commit

Permalink
Block Style: Display default style labels correctly in the block side…
Browse files Browse the repository at this point in the history
…bar (#55008)
  • Loading branch information
t-hamano authored and mikachan committed Oct 5, 2023
1 parent dac8a21 commit 0c89d7e
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 0c89d7e

Please sign in to comment.