浏览代码

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

Aleksander Nowodzinski 8 年之前
父节点
当前提交
25f7d7412f
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      packages/ckeditor5-alignment/src/alignmentui.js
  2. 1 0
      packages/ckeditor5-alignment/tests/alignmentui.js

+ 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 );
 		} );