Explorar o código

Merge pull request #7264 from ckeditor/i/7263

Internal (theme-lark): Widget type around buttons should not show up when the ancestor is a selected nested editable. Closes #7263.
Kuba Niegowski %!s(int64=5) %!d(string=hai) anos
pai
achega
b521db2b7f

+ 18 - 0
packages/ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css

@@ -116,6 +116,24 @@
 	}
 }
 
+/*
+ * Hide type around buttons when the widget is selected as a child of a selected
+ * nested editable (e.g. mulit-cell table selection).
+ *
+ * See https://github.com/ckeditor/ckeditor5/issues/7263.
+ */
+.ck-editor__nested-editable.ck-editor__editable_selected {
+	& .ck-widget {
+		&.ck-widget_selected,
+		&:hover {
+			& > .ck-widget__type-around > .ck-widget__type-around__button {
+				pointer-events: none;
+				opacity: 0;
+			}
+		}
+	}
+}
+
 /*
  * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).
  */