-
-
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
Blurred editor selection should be distinguishable #6517
Comments
That's native behavior. We do nothing custom here. I'm not sure we should be touching this. OTOH, it's something that we could perhaps do differently than the OS. |
cc @oleq |
I'm actually surprised to see that this is an issue coming from browser, and in fact this is what we get from Works better for this particular case but then again user is not aware what has been selected. The way I see it the most optimal way is to keep showing the selection but change its color, to indicate that it doesn't have the focus. |
Yes, we can do something about it. I created a PoC in https://github.com/ckeditor/ckeditor5-theme-lark/compare/i/6517?expand=1 that works in Chrome and Firefox. Except for the selection background in nested editables which is broken due to the I couldn't find any way to filter nested editables out. Technically we could override this Wanna take a look @panr? |
Sure, will check it tomorrow morning 👌 |
@oleq what about using
IMHO, it's even better. You keep "active" selection when you're navigating through the toolbar, but you get "inactive" selection when you blur the editor for real. And of course it's binded to the existing logic (switching between |
@panr It won't work because if you focus the toolbar via Alt+F10, the root editable still has |
As I mentioned above:
:-) And for some reason, you decided to keep the |
Can you create a PoC so we can see it live? |
Sure, the simplest and the quickest POC (without any mocked environment) — https://github.com/ckeditor/ckeditor5-theme-lark/compare/i/6517-ck-blurred?expand=1 (don't be bothered by the diff in |
So it only affects the selection when the focus went out of the editor (not when the toolbar became focused)... I think it makes sense and we could go with it. WDYT @mlewand? |
Other: The selection inside the `InlineEditableUIView` should be grey when the editor is blurred. Closes ckeditor/ckeditor5#6517.
Other: The selection inside the `InlineEditableUIView` should be grey when the editor is blurred. Closes #6517.
📝 Provide detailed reproduction steps (if any)
shift
+tab
to move the selection to preceding "classic editor" link.✔️ Expected result
A common practice is to turn it gray or hide completely if the input widget is not focused.
❌ Actual result
Currently the editor focus is always blue.
📃 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: