Przeglądaj źródła

Extend the component tooltip message.

panr 5 lat temu
rodzic
commit
d73cda7ccb

+ 2 - 2
packages/ckeditor5-image/src/imageresize/ui/imageresizeui.js

@@ -80,7 +80,7 @@ export default class ImageResizeUI extends Plugin {
 				label: t( label ),
 				withText: true,
 				icon: linkIcon,
-				tooltip: t( 'Resize Image' ),
+				tooltip: t( `Resize image to ${ parsedValue }` ),
 				isToggleable: true,
 				commandValue: parsedValue
 			} );
@@ -118,7 +118,7 @@ export default class ImageResizeUI extends Plugin {
 			const dropdownButton = dropdownView.buttonView;
 
 			dropdownButton.set( {
-				tooltip: t( 'Resize Image' ),
+				tooltip: t( 'Resize image' ),
 				icon: linkIcon,
 				commandValue: firstOption.value,
 				isToggleable: true,