Image Gallery: Update toolbar position and tooltips (#35534)
* Move image gallery toolbar up a bit * Increase z-index of image gallery toolbar so that tooltips are not behind other images * Update image gallery toolbar button tooltips
This commit is contained in:
parent
5b06618a6f
commit
932b3386c3
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: tweak
|
||||
|
||||
Updated image gallery toolbar position and tooltips.
|
|
@ -1,7 +1,8 @@
|
|||
.woocommerce-image-gallery__toolbar {
|
||||
position: absolute;
|
||||
top: -50px;
|
||||
top: -58px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
z-index: 1000;
|
||||
background-color: white;
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ export const ImageGalleryToolbar: React.FC< ImageGalleryToolbarProps > = ( {
|
|||
icon={ () => (
|
||||
<SortableHandle itemIndex={ childIndex } />
|
||||
) }
|
||||
label={ __( 'Drag', 'woocommerce' ) }
|
||||
label={ __( 'Drag to reorder', 'woocommerce' ) }
|
||||
/>
|
||||
<ToolbarButton
|
||||
disabled={ childIndex < 2 }
|
||||
|
@ -85,7 +85,7 @@ export const ImageGalleryToolbar: React.FC< ImageGalleryToolbarProps > = ( {
|
|||
<ToolbarButton
|
||||
onClick={ () => setAsCoverImage( childIndex ) }
|
||||
icon={ CoverImageIcon }
|
||||
label={ __( 'Set as cover image', 'woocommerce' ) }
|
||||
label={ __( 'Set as cover', 'woocommerce' ) }
|
||||
/>
|
||||
</ToolbarGroup>
|
||||
) }
|
||||
|
@ -106,7 +106,7 @@ export const ImageGalleryToolbar: React.FC< ImageGalleryToolbarProps > = ( {
|
|||
<ToolbarButton
|
||||
onClick={ () => removeItem( childIndex ) }
|
||||
icon={ trash }
|
||||
label={ __( 'Delete', 'woocommerce' ) }
|
||||
label={ __( 'Remove', 'woocommerce' ) }
|
||||
/>
|
||||
</ToolbarGroup>
|
||||
</Toolbar>
|
||||
|
|
Loading…
Reference in New Issue