Ver Fonte

Fix z-index for the toolbar dropdown panels.

panr há 5 anos atrás
pai
commit
f32b66e6d6

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

@@ -65,3 +65,11 @@
 		}
 	}
 }
+
+/*
+ * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.
+ * See https://github.com/ckeditor/ckeditor5/issues/7874
+ */
+.ck.ck-toolbar .ck-dropdown__panel {
+	z-index: var(--ck-z-toolbar-dropdown-panel);
+}

+ 1 - 0
packages/ckeditor5-ui/theme/globals/_zindex.css

@@ -6,4 +6,5 @@
 :root {
 	--ck-z-default: 1;
 	--ck-z-modal: calc( var(--ck-z-default) + 999 );
+	--ck-z-toolbar-dropdown-panel: calc( var(--ck-z-modal) + 1 );
 }