WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.51k stars 4.21k forks source link

Improve Write/Design mode switch discoverability #66480

Open annezazu opened 2 weeks ago

annezazu commented 2 weeks ago

In the testing I've done with users, it's not clear how to switch between modes and no one thus far has been able to figure it out in 5+ tests. Meanwhile with zoom out, there's a nice double click to move out of zoom out that allows a more seamless understanding, along with the clear option to invoke it.

In talking with @jasmussen, some ideas were thrown out including a more of a toggle state rather than a dropdown selection. In any case, kicking off this issue to start resolving the problem sooner rather than later. Happy to ask permission from a close friend I had test if we want to see someone trying to go through it in action. cc @WordPress/gutenberg-design

rabie-elkheir commented 2 weeks ago

Hello @annezazu I can do this job Would you please send me a link to the design location?

annezazu commented 2 weeks ago

Hey there! We don’t have a design just yet and this issue is open to start exploring that. Thanks so much for being game to help when the time comes!

jameskoster commented 2 weeks ago

Here's a couple of rough ideas based around the premise of drawing a little more attention to the mode selection UI.

Image

annezazu commented 2 weeks ago

In doing more testing around this too, I think we need to consider a way to prompt folks around the modes potentially when they can't do something. Some of that will depend of course on where we end up with auditing blocks that can be edited with content only: https://github.com/WordPress/gutenberg/issues/65778

jasmussen commented 2 weeks ago

Toggle options come with the challenge of stressing already pressed real-estate. Until the tools themselves and the defaults applied have been refined to be more solid than they are in this nascent pre-alpha state, it's unclear that these actually need the prominence. Perhaps more importantly, we know that annotations/inline comments are on the way, and it may be useful to have those as its own tool. Does that become three buttons, or two? So there are lots of variables to consider.

Here's a couple of options that are perhaps a smaller diff between trunk, and if nothing else they can serve as interim stepping stones.

A B
Image Image

Figma.

ntsekouras commented 1 week ago

@jasmussen I'm not sure I get the differences in the designs you shared.

How is option A different from trunk?

Is option B only about a dropdown for the tools or in view/preview icon too?

jameskoster commented 1 week ago

We should be careful about adding chevron indicators unless we're prepared to apply that treatment to all menu triggers, else we're introducing unhelpful inconsistencies.

In order to use chevrons like this they would likely need to be buttons themselves, with the mode-icon indicating the active selection, but not being a button itself. E.g. Figma:

Image

This is what I tried to recreate in the first of the three mockups above.

jasmussen commented 1 week ago

The difference is the presence of chevron indicators, like Jay alludes to. I'd agree to be careful there.