Skip to content

Commit

Permalink
Button: Update Settings text labels (#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

1 comment on commit 500883f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 500883f.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12479539260
📝 Reported issues:

Please sign in to comment.