Skip to content

Commit 500883f

Browse files
Mamadukat-hamano
andauthoredDec 24, 2024··
Button: Update Settings text labels (#68265)
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>
1 parent c3ca59b commit 500883f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎packages/block-library/src/button/edit.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@ function WidthPanel( { selectedWidth, setAttributes } ) {
125125
dropdownMenuProps={ dropdownMenuProps }
126126
>
127127
<ToolsPanelItem
128-
label={ __( 'Button width' ) }
128+
label={ __( 'Width' ) }
129129
isShownByDefault
130130
hasValue={ () => !! selectedWidth }
131131
onDeselect={ () => setAttributes( { width: undefined } ) }
132132
__nextHasNoMarginBottom
133133
>
134134
<ToggleGroupControl
135-
label={ __( 'Button width' ) }
135+
label={ __( 'Width' ) }
136136
value={ selectedWidth }
137137
onChange={ ( newWidth ) =>
138138
setAttributes( { width: newWidth } )

‎test/e2e/specs/editor/blocks/buttons.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ test.describe( 'Buttons', () => {
268268
.getByRole( 'tab', { name: 'Settings' } )
269269
.click();
270270
await page
271-
.getByRole( 'radiogroup', { name: 'Button width' } )
271+
.getByRole( 'radiogroup', { name: 'Width' } )
272272
.getByRole( 'radio', { name: '25%' } )
273273
.click();
274274

0 commit comments

Comments
 (0)