瀏覽代碼

Fix: The main toolbar should always stay on top of contextual UI elements. Closes ckeditor/ckeditor5#6220.

Aleksander Nowodzinski 5 年之前
父節點
當前提交
7da2b4e1e0
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      packages/ckeditor5-editor-classic/theme/classiceditor.css

+ 4 - 1
packages/ckeditor5-editor-classic/theme/classiceditor.css

@@ -11,6 +11,9 @@
 
 	& .ck-editor__top .ck-sticky-panel .ck-toolbar {
 		/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */
-		z-index: var(--ck-z-modal);
+		/* https://github.com/ckeditor/ckeditor5/issues/6220 */
+		z-index: calc(var(--ck-z-modal) + 1);
+
+		position: relative;
 	}
 }