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

Update shortcut opacity #10584

Closed
wants to merge 1 commit into from

Conversation

alexroseb
Copy link

@alexroseb alexroseb commented Oct 13, 2018

Description

Increased opacity at .84, the lowest it can be while still passing WCAG AA standards. Fixes #10576.

How has this been tested?

Doesn't affect anything except this small section because it's very specific CSS.

Screenshots

Original:
2018-10-13 14_01_51-edit post five college blended learning and digital humanities wordpress

Updated:
2018-10-13 14_01_28-edit post five college blended learning and digital humanities wordpress

Types of changes

Very small CSS change

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.

Opacity at .84, the lowest it can be while still passing WCAG AA standards
@postphotos
Copy link
Contributor

LGTM! Nice tweak. 👍

@Soean Soean added the [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). label Oct 14, 2018
@mtias mtias added the Needs Design Feedback Needs general design feedback. label Oct 15, 2018
@youknowriad
Copy link
Contributor

By looking at the screenshot, I'd argue that while this fixes the accessibility issue for people with sight issues, it creates usability issues for regular people as it's very hard to distinguish the shortcuts from the menu captions. And since the shortcuts are visible more clearly in the "Shortcuts modal", I'd be more in favor of leaving the current color.

Copy link
Member

@tofumatt tofumatt left a comment

Choose a reason for hiding this comment

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

I agree with @youknowriad; this creates issues for users without vision issues–and we do have keyboard hints elsewhere that are much more accessible. If we could rely on symbols everywhere like MacOS does we could do this, as the keyboard shortcuts would be quite small and far away enough from the menu item to not confuse things. As-is this is unreadable to me.

Could a compromise be to increase the opacity but lower the font size? How would that look? 🤷‍♂️

@tofumatt tofumatt added [Status] Needs More Info Follow-up required in order to be actionable. and removed Needs Design Feedback Needs general design feedback. labels Oct 18, 2018
@ffoodd
Copy link

ffoodd commented Oct 19, 2018

IMHO, it would be better either to increase contrast on menu captions (to better distinguish them from shortcuts) since they're "only" 6.47:1, or to increase their font-weight a bit (which would result in better readability, making them more visible than shortcuts).

Don't know how to play with this, but FWIW the issue with shortcuts and captions looking almost the same isn't that shortcuts are too legible, is it?

Make every thing more readable, please :)

@afercia
Copy link
Contributor

afercia commented Jan 14, 2019

See #10576 (comment)

@designsimply
Copy link
Member

Noting that @afercia's suggestions are to widen the settings area and make the keyboard shortcut the same color of the item labels and that a decision is needed for this issue to go forward.

@designsimply designsimply added Needs Decision Needs a decision to be actionable or relevant and removed [Status] Needs More Info Follow-up required in order to be actionable. labels Jan 25, 2019
@gziolo
Copy link
Member

gziolo commented Feb 1, 2019

I copied #10576 (comment) to make it easier to follow this PR:

Any updates / plans on this?

I get why better contrast is important

It's not only important: it's a requirement, which seems something some designers and developers here don't want to acknowledge.

Re: the Windows argumentation: also on Windows the keyboard shortcuts, while larger, are of the same color of the menu items:

screenshot 174

there's always a certain distance between the menu item and the shortcuts because the menu is larger.

Seems to me this is more a design issue. Why the more menu is only 260 pixels wide to start with? Worth also noting that languages other than English typically have longer strings and the menu doesn't account for them. When a menu item label goes in two lines, it's really not nice to see:

screenshot 176

I'd propose to:

  • make the menu adapt to the width of the item label + shortcut, in a way they're always on the same line separated by a decent amount of blank space
  • make the keyboard shortcut the same color of the item labels

@alexroseb are you fine addressing this feedback?

@gziolo gziolo added Needs Design Feedback Needs general design feedback. and removed Needs Decision Needs a decision to be actionable or relevant Needs Design Feedback Needs general design feedback. labels Feb 1, 2019
@gziolo gziolo added this to the 5.1 (Gutenberg) milestone Feb 7, 2019
@kjellr
Copy link
Contributor

kjellr commented Feb 7, 2019

I think widening this to 300px would be fine. That way, it's a little bit wider than the sidebar column, and we can provide a bit more separation between the label and the shortcut.

screen shot 2019-02-07 at 11 36 54 am

As for the color of the shortcut labels, is there a reason we use opacity here instead of just swapping out with one of our actual gray values (like $dark-gray-300 for instance)?

@jasmussen
Copy link
Contributor

Worth noting that in #13732 I'm changing the shortcut opacity to be fully opaque when hovered. I also updated the normal opacity to match this PR, so the rebase should be easier, which ever one gets approved first.

@youknowriad youknowriad removed this from the 5.3 (Gutenberg) milestone Mar 18, 2019
@aduth
Copy link
Member

aduth commented Apr 24, 2019

The specific changes proposed by this pull request were encompassed separately as part of #13732 . There seems to be a separate specific recommendation about the width of the menu, though I think it would be fair to acknowledge as a separate task tracked by #10576 (also in mind of lack of progress here).

For that reason, I'd suggest it be closed, and a separate pull request created for remaining items.

@aduth aduth closed this Apr 24, 2019
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.

Color contrast: shortcuts in the more menus lack a sufficient contrast ratio