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 and mikachan committed Oct 31, 2023
1 parent 1150493 commit d965341
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

0 comments on commit d965341

Please sign in to comment.