瀏覽代碼

Disabled button tooltip when the dropdown is open.

Aleksander Nowodzinski 8 年之前
父節點
當前提交
7d0801f307
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      packages/ckeditor5-ui/theme/components/dropdown/dropdown.css

+ 8 - 0
packages/ckeditor5-ui/theme/components/dropdown/dropdown.css

@@ -3,6 +3,8 @@
  * For licensing, see LICENSE.md.
  */
 
+@import "../tooltip/mixins/_tooltip.css";
+
 .ck-dropdown {
 	display: inline-block;
 	position: relative;
@@ -23,6 +25,12 @@
 	/* Dropdown button should span horizontally, e.g. in vertical toolbars */
 	& .ck-button.ck-dropdown__button {
 		width: 100%;
+
+		/* Disable main button's tooltip when the dropdown is open. Otherwise the panel may
+		partially cover the tooltip */
+		&.ck-on {
+			@mixin ck-tooltip_disabled;
+		}
 	}
 }