浏览代码

Set `position: relative` on all widgets to allow the type around feature to position its UI.

Aleksander Nowodzinski 5 年之前
父节点
当前提交
4a53d8e611
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      packages/ckeditor5-widget/theme/widget.css

+ 5 - 0
packages/ckeditor5-widget/theme/widget.css

@@ -17,6 +17,11 @@
 	--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);
 }
 
+.ck .ck-widget {
+	/* This is neccessary for type around UI to be positioned properly. */
+	position: relative;
+}
+
 .ck .ck-widget.ck-widget_with-selection-handle {
 	/* Make the widget wrapper a relative positioning container for the drag handle. */
 	position: relative;