-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Polish gallery inspector, inspector headings, slider #2020
Conversation
@jasmussen just a side note, I think the "Save" link actually saves the published post (and not only as a draft) |
Oh interesting. We should then hide the save link if the post is published. We do that on .com also. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems Firefox doesn't inherit box-sizing: border-box;
on the slider thumb, it should be set directly on it.
@jasmussen Seems Firefox (tested on macOS and Windows) needs The whole control is also a bit shifted to the top, because of the negative margin. Microsoft Edge has the same issue: the thumb is too big, and the top part is also cut-off: Not sure how to fix it, but seems there are proprietary Can't test in IE 11 because of #1397 and #1863 Noticed a couple more things, will split them in separate issues. |
height: 3px; | ||
cursor: pointer; | ||
background: $light-gray-500; | ||
border-radius: 1.5px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd consider to do border-radius: 50%;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did that initially, but because the track isn't a square that means the whole track becomes an oval.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, right!
Thanks so much for the excellent review. I will address your notes hopefully tomorrow! |
Do you have a quick tl;dr for the choice to move to an outlined toggle selector instead of a filled one? |
Are you referring to the range "knob" or the switch? In case it's the switch, that was an accessibility thing (on focus it's filled in). Andrea knows more. In the case of the screenshots here, the screenshots include the focus rectangle. If you click outside the range slider, the blue outline disappears. |
The switch. Thanks for the details 👍 |
For reference, see #1988 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still struggling with my broken Vagrant, but your screenshots look good to me. If there's any bugs I find post-merge I'll open new issues.
@afercia do my corrections look good? If so I'll try and rebase and get this merged. Thanks. |
@jasmussen looks good to me! Re: the range slider, here's some screenshots: (in IE11 and Edge the "circular focus" is a bit cut off, not sure that can be fixed) |
Thanks!
It can be, but it means making the switch smaller. I intentionally made it big so as to be a big touch target. What do you think? |
Ship it! 🙂 I think we can leave with a minor visual glitch in favor of better usability. |
It can be confusing when editing a post, and "Update" is the actual change that makes a difference.
This gets us closer, but not fully, to fixing #1523.
Polish the range slider for IE, Chrome and Firefox. This also optimizes the CSS a little bit.
da18cbd
to
fa9f195
Compare
Merging after a rebase, fixed tests, and two thumbs up. |
I'd recommend to consider also those strings can be longer in other languages. |
Great observation, Andrew and Andrea both. There isn't really room for the label, because we can't know what it might be translated to. Though I do agree, the Visual tab should have its paddings slightly condensed, at least at the mobile breakpoint. I feel like the solution here is a) keeping our minds open for a better editor mode switch in #1671, and revisiting #967 to add an icon and/or label to unsaved states. See also #967. Let me expand that a bit, and also respond to @nic-bertino (thank you for the mockup!). I feel strongly that "Save" is an action we can retire in the long term, and that it is our responsibility to use technology to spare the user of menial tasks. Modern web-apps auto save, and rarely have explicit save buttons. We recently added auto-save to Gutenberg, though I acknowledge this can be improved even further. As such, I strongly feel like we shouldn't optimize towards having a save button at all. As Andrea has mentioned in the past, so long as we have a save button we should definitely design for it, but I think there's a balance we need to keep. The "Save Draft" button becomes further confusing when a post is already published. What should it do in that case, convert it to a draft? By working towards retiring the button, we can simplify the UI, as well as save the user from having to click to save their work. More important than where to put the save button, I feel like we should keep the save state indicator where it is. This is the informational area in the top left that says Saved, Saving..., Save Failed, etc. In my research of other editors, this always came back as a super important affordance for letting you know whether your work was saved or not, especially important when relying on Autosave. But this could be an icon. Google Keep has that: Right now we have:
We could rethink these for mobile, and ensure every state has an icon, and then show icon + label on desktop, then icon only on mobile. And indeed, perhaps we shouldn't show Save at all on mobile? It's extra anachronistic on this platform. So we could end up with:
We could then show notices for failure actions instead. Thoughts? Then I can open a separate ticket. |
I agree for the most part. One observation is that there is a reliance on iconography at the mobile view right now, which I don't think is super intuitive. I'm an experienced user and I thought the eye icon was post visibility, not preview. I think that particular UI is being stuffed with icons/actions at the moment. I'll think about it, do some research, and try to come up with some wires.
This can get tricky. I see a use case where someone is editing an already-published post, in which case a draft is the editing workspace until the post is re-published. |
Really interesting PR, what a lot of awesome discussion. Putting my mobile hat on, the change from 'save' to 'save draft' does seem a problem. We have a lot of issues on mobile beyond this though, so worth thinking a little about our approach overall. As @joen you say, @afercia makes an excellent point about other languages increasing the length of that string to. I would +1 to 'save' going away. It's a little mental model shift 'did things even save' but for me an ideal 'magic' flow would be:
I think rethinking in terms of mobile but maybe then having for desktop too makes sense. After all, if it's a better flow why not have it on desktop? Maybe there are technical reasons I'm breezing past though :) Assuming I am not totally in the wrong place with this idea, I do like the idea of this flow for all devices, large and small:
|
Yep, there have been some attempts to re-think a bit the toolbar, without great success so far :) See also: I still think the "Publish" button at the top is a big problem for all keyboard users, it would be great to experiment to move it after the content or, maybe, have a second Publish button at the end of the content. #riskylife |
Exploring a second publish button would be cool. I'd be a 👎 for only showing publish at the bottom of the screen, though, especially because of prior testing we've done on a bottom placement:
From the Crazyhorse usability testing report. |
@melchoyce Crazyhorse was long time ago... (in a galaxy far, far away) . I guess those testing session didn't include keyboard users, right? 🙂 |
Not sure! But I think the general findings (that people don't notice actions at the bottom of their desktop screens) is still pretty legit. |
May be. Id encourage you to test Gutenberg using only the keyboard 🙂 |
I get that your issue is that it's hard for keyboard users to get back to Publish — that's totally fair! But moving the button to somewhere sighted users won't be able to find it isn't a good solution, either. We need to explore options that work for everyone. |
Totally agree. That doesn't seem to be the case, so far 😞 |
Unfortunately I think a lot of that is ignorance on our parts, which is why your feedback has been invaluable. Do you know if any other folks from the Accessibility team would be up for contributing, with either testing, code, or design? |
Hope some of the a11y team members will have some time to dedicate soon. |
Update page template picker after design review
Another sort of polish kitchen sink PR. This PR changes:
With regards to the slider, it has a focus style, so it should be accessible. It suffers from that same annoying issue that any other styled elements do -- that is, the focus lingers even when you click, which it doesn't do if the component itself is unstyled. But this is discussed separtely in #904.
Slider screenshot: