-
-
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
Mark UI buttons in the guides to improve discoverability #6267
Comments
I soooooo love this idea, this is something that I was missing a lot, too. Both solutions are totally fine to me. Feel free to choose one that you prefer. |
I had same feelings for a long, long time (don't know if it's not duplicated somewhere already), but that's definitely something worth doing. |
The PoC code landed in https://github.com/ckeditor/ckeditor5-link/pull/new/i/6267. Issue(s)I wanted to enable it in different places but there's a major problem with making this tour balloon available across the project.
|
As what I could observe, we don't add docs dependencies to pkg.json. It makes sense because docs cannot be built per package. The main repository provides a script for building docs for all packages and all required dependencies are defined in the main repo. |
So what we can do to solve the problem? |
I think we shouldn't do that. It's easier to code this balloon this way, but it just cannot be built like this in our documentation website. It's too complicated. The challenge and goal here, IMO, is to code this functionality in a way which will be completely standalone and pluggable into existing editors. |
An external library then? |
Sort of. Something that can be plugged like the inspector. |
The info balloon must be positioned absolutely and it must survive page scrolls, window resizing and target moving (the toolbar can change stickiness from top to bottom) so there are plenty of cases to take care of. Without our internal helpers that handle this already the only sane solution I see is a library like https://github.com/shipshapecode/tether and an integration on the Umberto-side (Umberto provides an API that CKEditor guides can use to attach a balloon). Maybe we could spend some time on it in the next iteration? |
This doesn't have to be done via modifying Umberto itself. Umberto is extensible, we load some CKE5-specific scripts there anyway – e.g. the "paste from Word" notification that's automatically loaded in all snippets. This helper that we'd need here could be loaded similarly, purely on CKE5 side.
Wanna join the red squad next iteration? :) I'm going to label it so it's there. |
Sure, I can carry it through. |
Some lib that could help us out https://roughnotation.com/ (didn't test in, though). |
How is that going? |
The issue was forgotten and no PoC saw daylight. It is still a valid issue, though. Let's discuss it during the next sync and see if we can come up with some timeslot for this. |
Side idea: Marking toolbar buttons as "high" priority so they will be picked for a mobile fold. |
Some considerations
Questions
|
Personally I prefer it when such things are very subtle. A small indicator without a big arrow "here is the new feature!" covering the text will be enough for me. But not sure what our users will like. TBH, after some small research, I couldn't found anything better than https://roughnotation.com/ proposed by @oleq . Most similar libraries are for "step by step" introduction. Of course, there are hundreds of tooltip libs, so we will have plenty of options if we go this way. Main pros:
There is one problem that will exist with every library. On the small screen when the button is behind "three dots", nothing will show up. But it could be solved by @jodator proposal: move the feature button out of the mobile fold, so it will be always visible. Also my thoughts about some of Oleq's questions:
So now we need an answer to the main question: do we want a tooltip, or only an indicator around the button? |
I'd say all that is fine and I'm for. But I'd keep the indicator on all demos if we have more. These are rather rare cases, we hardly ever have more than two demos, so this is not that a big deal - especially that there sometimes are demos showcasing different toolbar options (eg. the image demo [also wanted to mention heading demo, but the second one basically requires zero indicators anyway...). |
Can we see this live in some branch @pkwasnik? |
Sure: https://github.com/ckeditor/ckeditor5/compare/i/6267?expand=1 |
Oh, the block one, much nicer than the circle one! |
I like the idea of faint indicator very much, I'm not totally for the tooltip, tho. |
My 2cs:
|
|
TODO:
|
Notes from the last meeting:
|
Basically, it seems the general consensus was that we should stick to tooltips instead, as more clearly divisible/readable. |
Finally figured out how to put it in the code, PR is ready. After working with this a bit, I have some additional thoughts about the design:
|
📝 Provide a description of the improvement
Personally, sometimes I feel it's pretty hard to figure out which button among dozens is "the one" a particular guide is about. This could be even a bigger problem for people unfamiliar with the editor. My idea is we could add some classes via JS in the samples (and some styles) and help readers find the right place to start.
Some rough ideas
The halo approach
The tooltip approach
@Reinmar @AnnaTomanek
If you'd like to see this improvement implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: