瀏覽代碼

Adjusted vertical-align of .ck-icon.

Aleksander Nowodzinski 8 年之前
父節點
當前提交
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). */