Skip to content

Commit

Permalink
Update label for lightbox editor UI (#55724)
Browse files Browse the repository at this point in the history
* Update label for lightbox editor UI

* Change lightbox label in Global Styles
  • Loading branch information
artemiomorales authored Oct 31, 2023
1 parent cb6227a commit 3769577
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ export default function ImageSettingsPanel( {
// "RESET" button ONLY when the user has explicitly set a value in the
// Global Styles.
hasValue={ () => !! value?.lightbox }
label={ __( 'Expand on Click' ) }
label={ __( 'Expand on click' ) }
onDeselect={ resetLightbox }
isShownByDefault={ true }
panelId={ panelId }
>
<ToggleControl
label={ __( 'Expand on Click' ) }
label={ __( 'Expand on click' ) }
checked={ lightboxChecked }
onChange={ onChangeLightbox }
/>
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/image/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,14 +548,14 @@ export default function Image( {
{ showLightboxToggle && (
<ToolsPanelItem
hasValue={ () => !! lightbox }
label={ __( 'Expand on Click' ) }
label={ __( 'Expand on click' ) }
onDeselect={ () => {
setAttributes( { lightbox: undefined } );
} }
isShownByDefault={ true }
>
<ToggleControl
label={ __( 'Expand on Click' ) }
label={ __( 'Expand on click' ) }
checked={ lightboxChecked }
onChange={ ( newValue ) => {
setAttributes( {
Expand Down

1 comment on commit 3769577

@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 3769577.
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/6706235606
📝 Reported issues:

Please sign in to comment.