Преглед изворни кода

Extend the component tooltip message.

panr пре 5 година
родитељ
комит
d73cda7ccb
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      packages/ckeditor5-image/src/imageresize/ui/imageresizeui.js

+ 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,