浏览代码

Disabled button tooltips when the split button is open.

Aleksander Nowodzinski 7 年之前
父节点
当前提交
dbecc08f22
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      packages/ckeditor5-ui/theme/components/dropdown/splitbutton.css

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

@@ -3,6 +3,8 @@
  * For licensing, see LICENSE.md.
  */
 
+@import "../tooltip/mixins/_tooltip.css";
+
 .ck-splitbutton {
 	/* Enable font size inheritance, which allows fluid UI scaling. */
 	font-size: inherit;
@@ -11,3 +13,8 @@
 		z-index: calc(var(--ck-z-default) + 1);
 	}
 }
+
+/* Disable tooltips for the buttons when the button is "open" */
+.ck-splitbutton.ck-splitbutton_open > .ck-button {
+	@mixin ck-tooltip_disabled;
+}