Steps to reproduce:
Result: the options to move a block seem to be hidden off-left. (14s) I expected to be able to drag and drop the content blocks from an edit mode of some sort, as https://github.com/WordPress/gutenberg/issues/38 suggests.
Tested with Chrome on a Pixel with Android 7.1.1.
Mobile is very important to the editor project, but hasn't been a focus quite yet. No reason that can't change. Here's a very early draft for how the block and inline level formatting controls, as well as the type switcher and block move controls could work on mobile:
I took the liberty of renaming the ticket, to make it our canonical "consider mobile UI" ticket.
Mockup:
Edit: Updated to show the latest mockup.
@jasmussen great prototypes! I think that the first one is better, for two main reasons:
The first one takes less screen space than the second one, so you can see more of your content and less UI. This is critical on mobile.
When you have the controls at the bottom of the screen on mobile, the user is more confortable to do everything with one hand. Take a look at this article about bottom "navigation" (https://uxplanet.org/perfect-bottom-navigation-for-mobile-app-effabbb98c0f) and this one about how users hold mobile devices (http://www.uxmatters.com/mt/archives/2013/02/how-do-users-really-hold-mobile-devices.php).
By the way, keeping the formatting options "attached" to the keyboard feels more intuitive.
Great thoughts @diegoliv. I do completely agree with having navigation bottom-side when possible, which is why that was my first instinct also. However @afraithe reminded me that it isn't actually possible to know when the soft-keyboard is open on mobile, and so we can't actually calculate where to place the bottom toolbar. To put it differently, if we added position: fixed; bottom: 0;
to the toolbar, it would be covered by the keyboard when that popped up.
If we were building an app it would be a different thing of course :D
If new developments have happened in the mobile CSS space, would be cool to revisit this, but I think sadly we're stuck with a top-bound toolbar for now.
Hey @jasmussen, thx for the mobile mocks! May I ask, do I read it correctly that the block/inline formatting options only appear when text is already selected?
May I ask, do I read it correctly that the block/inline formatting options only appear when text is already selected?
Something to explore when we get to this point, probably. Alternatively they could be grayed out.
@jasmussen This looks great!
However @afraithe reminded me that it isn't actually possible to know when the soft-keyboard is open on mobile, and so we can't actually calculate where to place the bottom toolbar
I'd love to make sure this is (still) true. Seems the problem is iOS Safari wasn't always adjusting the viewport correctly. I'd love to find out if that's been fixed… maybe I'll make an attempt at it.
I'd love to find out if that's been fixed… maybe I'll make an attempt at it.
😍 There's a 🌟 emoji in it for you!
However @afraithe reminded me that it isn't actually possible to know when the soft-keyboard is open on mobile, and so we can't actually calculate where to place the bottom toolbar
@nheagy the last time I worked on this, the first challenge was that Android Chrome and Mobile Safari behave differently:
Secondly, as Joen said, it's quite hard to determine if the device has the keyboard shown at all. There are also cases when the keyboard is "shown" but it is not actually visible, such as when an external bluetooth keyboard is being used.
All of which is to say that I think it's still a good idea in the current state of the web to use top-fixed elements whenever possible.
Made a few GIF's walking through typing and adding a new block on mobile:
A summary of where TinyMCE is headed with mobile capability (and what we learned from making Textbox.io, a fully accessible, professional quality text editor for mobile)
Closing this in favor of individual tickets: https://github.com/WordPress/gutenberg/labels/%5BComponent%5D%20Mobile
Most helpful comment
Mobile is very important to the editor project, but hasn't been a focus quite yet. No reason that can't change. Here's a very early draft for how the block and inline level formatting controls, as well as the type switcher and block move controls could work on mobile: