Skip to content
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

fix: make "Manage Reusable Blocks" a link #10454

Merged
merged 2 commits into from
Oct 10, 2018

Conversation

tofumatt
Copy link
Member

@tofumatt tofumatt commented Oct 9, 2018

Fix #10009.

Description

Convert the "Manage all Reusable Blocks" button to a link. Previously, it was an icon-only button, which isn't good for accessibility or UX, and caused confusion regarding the result of interacting with the button (see: #10435).

This makes it clear the item is a link which will navigate to another part of the site.

How has this been tested?

Tested locally in Firefox and Chrome, link works as expected. No longer looks like a button that doesn't act like one.

Screenshots

Before

screenshot 2018-10-09 21 23 01

screenshot 2018-10-09 21 22 52

After

screenshot 2018-10-10 00 21 59

@tofumatt tofumatt added this to the 4.1 milestone Oct 9, 2018
@tofumatt tofumatt requested review from karmatosed, jasmussen, afercia and a team October 9, 2018 20:23
@tofumatt tofumatt added the [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). label Oct 9, 2018
@tofumatt
Copy link
Member Author

tofumatt commented Oct 9, 2018

I centered the text because I thought it was nice. Feel free to adjust that 😉

@tofumatt
Copy link
Member Author

tofumatt commented Oct 9, 2018

As requested by @karmatosed in the issue (#10009 (comment)), I've moved the text; it's now right-aligned.

Copy link
Member

@noisysocks noisysocks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests well and looks good from a code perspective 👍

@noisysocks noisysocks added the Needs Design Feedback Needs general design feedback. label Oct 10, 2018
@jasmussen
Copy link
Contributor

jasmussen commented Oct 10, 2018

I think the location of the link in the inserter is something that, in the future, should probably be reconsidered. The block library feels like it should contain only blocks, like a drawer that is intentionally created to hold a specific type of items, and when it contains a link like this it feels weird like an odd thing that "sticks out", especially given we also have a link in the menu (though to be clear this is an issue with both the link and the icon button). However it's also probably necessary there, because users might discover that link from the reusable blocks section.

In other words, this is fine, ship it. But it'd be nice if the reusable blocks management UI could see improvement separately in the future. But such it is with software, work is never over, and perfection is always around the next corner. Good thing 5.1 is already slated for early 2019.

Nice work.

@gziolo gziolo merged commit f232447 into master Oct 10, 2018
@gziolo gziolo deleted the fix/10009-manage-all-should-be-link branch October 10, 2018 07:36
@gziolo gziolo modified the milestones: 4.1, 4.0 Oct 10, 2018
@tofumatt
Copy link
Member Author

tofumatt commented Oct 10, 2018

Agreed 100%. This is still a pretty janky UX, but at least the jank is well-communicated with it being a link now. 😆

@tofumatt tofumatt removed the Needs Design Feedback Needs general design feedback. label Oct 10, 2018
@noisysocks
Copy link
Member

noisysocks commented Oct 11, 2018

The block library feels like it should contain only blocks, like a drawer that is intentionally created to hold a specific type of items, and when it contains a link like this it feels weird like an odd thing that "sticks out", especially given we also have a link in the menu (though to be clear this is an issue with both the link and the icon button).

Do we need both this link and the Mange All Reusable Blocks menu item?

@jasmussen
Copy link
Contributor

Do we need both this link and the Mange All Reusable Blocks menu item?

That's the million dollar question.

My gut says yes because reusable blocks are a new concept, and we can speculate a user might intuitively want to look for options in the block library. Also, redundant interfaces is not the end of the world.

But it would be nice to remove it if we had some way to know that the More menu link was sufficient.

@tofumatt
Copy link
Member Author

tofumatt commented Oct 11, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants