Procházet zdrojové kódy

Disabled button tooltip when the dropdown is open.

Aleksander Nowodzinski před 8 roky
rodič
revize
7d0801f307

+ 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;
+		}
 	}
 }