Skip to content

Commit

Permalink
Button: Update Settings text labels (WordPress#68265)
Browse files Browse the repository at this point in the history
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
  • Loading branch information
3 people authored Dec 24, 2024
1 parent c3ca59b commit 500883f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/button/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ function WidthPanel( { selectedWidth, setAttributes } ) {
dropdownMenuProps={ dropdownMenuProps }
>
<ToolsPanelItem
label={ __( 'Button width' ) }
label={ __( 'Width' ) }
isShownByDefault
hasValue={ () => !! selectedWidth }
onDeselect={ () => setAttributes( { width: undefined } ) }
__nextHasNoMarginBottom
>
<ToggleGroupControl
label={ __( 'Button width' ) }
label={ __( 'Width' ) }
value={ selectedWidth }
onChange={ ( newWidth ) =>
setAttributes( { width: newWidth } )
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/specs/editor/blocks/buttons.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ test.describe( 'Buttons', () => {
.getByRole( 'tab', { name: 'Settings' } )
.click();
await page
.getByRole( 'radiogroup', { name: 'Button width' } )
.getByRole( 'radiogroup', { name: 'Width' } )
.getByRole( 'radio', { name: '25%' } )
.click();

Expand Down

0 comments on commit 500883f

Please sign in to comment.