-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The nested widget selection handle is visible while the outer table cells are selected #9491
Comments
Before we jump to conclusions and start writing code, let's figure out the right UX first. In my opinion, there are multiple approaches to this problem. Status of things (
|
During today's UX sync we decided
is the right direction ATM. |
About this safer resolution: If we set
2. with safer resolution ( As you can see there's no selection handle for selected table with hover. There's also another problem on master with nested tables: there's no border and selection handle for first nested table - I'm not sure if it should be handle within this ticket or not. |
Side-note: Looks like there's a lot of funny things going on we need to straighten out. For instance, only the innermost widget gets the yellow hover outline when the mouse is over it because as per #4594 ckeditor5/packages/ckeditor5-widget/src/widget.js Lines 135 to 136 in 52b3732
and as a result, the innermost widget does not get the |
A rough idea based on the fact that we don't really care if the widget has the selected CSS class or not when it's inside table selection. The fact it is there is all that really matters, you can't have a table selection and proper widget selection going on in parallel anyway. I wouldn't merge it to master two days before the code freeze, though. diff --git a/packages/ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css b/packages/ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css
index 5a0901f589..fdfa20b009 100644
--- a/packages/ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css
+++ b/packages/ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css
@@ -32,8 +32,16 @@
background-color: transparent;
}
- & .ck-widget_selected {
+ /*
+ * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.
+ * See https://github.com/ckeditor/ckeditor5/issues/9491.
+ */
+ & .ck-widget {
outline: unset;
+
+ & > .ck-widget__selection-handle {
+ display: none;
+ }
}
}
} |
Fix (table): A nested widget in a multi-cell table selection should not have the selection handle. Closes #9491.
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
The selection handle is not visible
❌ Actual result
📃 Other details
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: