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

Adjusted vertical-align of .ck-icon.

Aleksander Nowodzinski 8 лет назад
Родитель
Сommit
0e531e837a
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      packages/ckeditor5-ui/theme/components/icon/icon.css

+ 5 - 1
packages/ckeditor5-ui/theme/components/icon/icon.css

@@ -5,7 +5,11 @@
 
 svg.ck-icon {
 	font-size: 1em;
-	vertical-align: middle;
+
+	/* Must be consistent with .ck-button__label's vertical align. Otherwise, buttons with and
+	without labels (but with icons) have different sizes in Chrome */
+	vertical-align: top;
+
 	color: inherit;
 
 	/* Inherit cursor style (#5). */