Procházet zdrojové kódy

Got rid of the button with color animation which burns CPU when displayed in Firefox. Fixes #35.

Aleksander Nowodzinski před 9 roky
rodič
revize
f787aaff6d

+ 0 - 20
packages/ckeditor5-theme-lark/tests/manual/theme.html

@@ -16,26 +16,6 @@
 			color: red;
 		}
 
-		@keyframes icon-color-change {
-			0% {
-				color: white;
-				background: orange;
-			}
-			50% {
-				color: orange;
-				background: white;
-			}
-			100% {
-				color: white;
-				background: orange;
-			}
-		}
-
-		#icon-color-change {
-			border: 0;
-			animation: icon-color-change 3s infinite;
-		}
-
 		.button-responsive > div {
 			font-size: 1.5em;
 			line-height: 2.8em;

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

@@ -152,16 +152,6 @@ function renderButton( ui ) {
 		icon: 'bold'
 	} ) );
 
-	const colChangeButton = button( {
-		label: 'Icon follows text color',
-		icon: 'bold'
-	} );
-
-	// TODO: It requires model interface.
-	colChangeButton.view.element.id = 'icon-color-change';
-
-	ui.add( 'button-icon-states', colChangeButton );
-
 	// --- Responsive ------------------------------------------------------------
 
 	for ( let i = 1; i < 4; i++ ) {