Parcourir la source

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

Aleksander Nowodzinski il y a 5 ans
Parent
commit
4a53d8e611
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  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;