8
0
Просмотр исходного кода

Added .ck class to .ck-color-table.

Aleksander Nowodzinski 6 лет назад
Родитель
Сommit
fc7d4fe79f

+ 4 - 1
packages/ckeditor5-font/src/ui/colortableview.js

@@ -126,7 +126,10 @@ export default class ColorTableView extends View {
 		this.setTemplate( {
 			tag: 'div',
 			attributes: {
-				class: [ 'ck-color-table' ]
+				class: [
+					'ck',
+					'ck-color-table'
+				]
 			},
 			children: this.items
 		} );

+ 3 - 1
packages/ckeditor5-font/tests/ui/colortableview.js

@@ -31,7 +31,8 @@ describe( 'ColorTableView', () => {
 			options: {
 				hasBorder: true
 			}
-		}, {
+		},
+		{
 			color: 'red',
 			label: 'Red',
 			options: {
@@ -90,6 +91,7 @@ describe( 'ColorTableView', () => {
 		} );
 
 		it( 'has proper class', () => {
+			expect( colorTableView.element.classList.contains( 'ck' ) ).to.be.true;
 			expect( colorTableView.element.classList.contains( 'ck-color-table' ) ).to.be.true;
 		} );
 	} );