Procházet zdrojové kódy

Extended manual test to showcase more disabled buttons.

Aleksander Nowodzinski před 9 roky
rodič
revize
473a5f1b08

+ 11 - 0
packages/ckeditor5-theme-lark/tests/manual/theme.js

@@ -146,6 +146,17 @@ function renderButton( ui ) {
 		isEnabled: false
 	} ) );
 
+	const disabledActionButton = button( {
+		label: 'Disabled action',
+		icon: 'bold',
+		isEnabled: false
+	} );
+
+	// TODO: It requires model interface.
+	disabledActionButton.view.element.classList.add( 'ck-button-action' );
+
+	ui.add( 'button-icon-states', disabledActionButton );
+
 	ui.add( 'button-icon-states', button( {
 		label: 'Bold',
 		withText: false,