Browse Source

Added a tooltip to the main alignment button in the toolbar.

Aleksander Nowodzinski 8 years ago
parent
commit
25f7d7412f

+ 1 - 0
packages/ckeditor5-alignment/src/alignmentui.js

@@ -96,6 +96,7 @@ export default class AlignmentUI extends Plugin {
 				defaultIcon: alignLeftIcon,
 				withText: false,
 				isVertical: true,
+				tooltip: true,
 				toolbarClassName: 'ck-editor-toolbar',
 				buttons
 			} );

+ 1 - 0
packages/ckeditor5-alignment/tests/alignmentui.js

@@ -218,6 +218,7 @@ describe( 'Alignment', () => {
 
 			expect( button ).to.have.property( 'label', 'Text alignment' );
 			expect( button ).to.have.property( 'icon' );
+			expect( button ).to.have.property( 'tooltip', true );
 			expect( button ).to.have.property( 'withText', false );
 		} );