Kaynağa Gözat

Hide the widget selection handle when the "fake caret" is either before or after the widget.

Aleksander Nowodzinski 5 yıl önce
ebeveyn
işleme
dddc9ce79d

+ 11 - 11
packages/ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css

@@ -151,23 +151,23 @@
 		}
 	}
 
-	/*
-	 * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).
-	 * In this state, the type around buttons would collide with the fake carets so they should disappear.
-	 */
 	&.ck-widget_type-around_show-fake-caret_before,
 	&.ck-widget_type-around_show-fake-caret_after {
+		/*
+		 * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).
+		 * In this state, the type around buttons would collide with the fake carets so they should disappear.
+		 */
 		& > .ck-widget__type-around > .ck-widget__type-around__button {
 			@mixin ck-widget-type-around-button-hidden;
 		}
-	}
 
-	/*
-	 * Fake horizontal caret integration with the selection handle. When the caret is visible, simply
-	 * hide the handle because it intersects with the caret (and does not make much sense anyway).
-	 */
-	&.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle > .ck-widget__selection-handle {
-		display: none;
+		/*
+		 * Fake horizontal caret integration with the selection handle. When the caret is visible, simply
+		 * hide the handle because it intersects with the caret (and does not make much sense anyway).
+		 */
+		&.ck-widget_with-selection-handle > .ck-widget__selection-handle {
+			display: none;
+		}
 	}
 }