-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Docs: update keyboard shortcuts section of FAQ #9388
Conversation
Squashed and rebased. |
Hey @ZebulanStanphill - Thank you for working on this! Looks like there are conflicts again 😱 Would be good to see how this looks in the handbook before merging (@gziolo is there a way to do this?) I'm concerned that I couldn't see an example of a table in the gutenberg handbook, and I'm unclear on whether a markdown or html table would be preferable in terms of how it'll end up looking. When viewing in github's markdown viewer, there are some things that could be tidied up:
|
I don't think there is a way to do it because we don't have any tables exposed in the handbook. I would say, give it a go and we can always iterate.
I second this. |
So I should remove the wrapping
I thought that including the names of each key would be better for accessibility. Is that not the case?
I will do this.
But wouldn't this be worse for accessibility? |
I think that's one of those things where we might have to break a rule to make it look better.
There was some discussion about accessibility of the symbols here: To summarise, voiceover reads the symbols correctly, adding the name causes them to be read twice, which is confusing. It is a shame the legibility of the shortcuts in github isn't great (the font size is so small!), which is a separate a11y issue, but at least we can make them look nice in the handbook at some point.
Centered and bolded text is very hard to read for many, and I don't think screen readers will announce a |
Addressed feedback. I think this issue should get a "Needs Accessibility Feedback" label, just to be sure, though. |
👍 Thanks for making those changes. I've added the label as requested. One thing - I think we should still use Escape or Esc on MacOS, instead of the symbol, as the symbol is not widely known or used. |
Done! 👍 |
docs/reference/faq.md
Outdated
</thead> | ||
<tbody> | ||
<tr> | ||
<th colspan="3">Editor shortcuts</th> |
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.
Not sure this is the best way to use a table header. Screen readers do announce the table headers (th) when navigating through the table cells. While the first 3 headers in the <thead>
section give a proper information, I'm not sure what happens when then there's another header with colspan="3"
.
I'd suggest to separate sections with headings and use separate tables.
Testing with just Safari and VoiceOver isn't enough, this should be tested also on Windows (at least) with JAWS and NVDA.
Rather than abstract semantics, I'd suggest to keep things as simple as possible, ensuring information is announced correctly an navigable with ease. Also, redundant information and "noise" for screen readers should be avoided. For example. all the "plus" get announced and they're a bit annoying, not strictly relevant.
I'd also suggest to have a look at how webaim.org made similar tables, e.g.:
https://webaim.org/resources/shortcuts/jaws
https://webaim.org/resources/shortcuts/nvda
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 also suggest to have a look at how webaim.org made similar tables, e.g.:
https://webaim.org/resources/shortcuts/jaws
https://webaim.org/resources/shortcuts/nvda
I find the tables in those links really hard to parse with the lack of consistent indentation, line breaks mid-way through shortcuts and highly variable column widths. I'm very surprised if that's the gold standard for accessibility.
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.
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.
Yeah, I'd been keen to just get this merged now, separate tables or not. Will probably need iteration in a second PR or trac ticket once we know how it looks in the handbook.
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.
For example. all the "plus" get announced and they're a bit annoying, not strictly relevant.
Let's remove it as suggested.
I bet you can simplify those tables and move on.
I meant, that it's okay to have 3 tables with different width if that helps to make them more a11y friendly.
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.
Let's remove it as suggested.
They're that way in the Gutenberg front-end, though. If we remove them here, lets remove them in Gutenberg as well. I'd prefer it if we kept things consistent so that if we apply an improvement in one place we apply it in others as well. Maybe we can get this merged with the 'plus' symbols in place and then create an issue where we can discuss removing them across the board?
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.
Good call @talldan, ideally we could copy and paste HTML from the modal dialog to the handbook to make the process easier.
I'm an accessibility specialist, when I refer to examples I look at their markup, semantics, and the way content is perceived and announced by assistive technology. The presentation layer is secondary to me, and you can style it in the way you prefer 🙂 |
@ZebulanStanphill Sorry for the u-turn, it looks like the preference is for separate tables. I think that's the only action left. Once this is merged lets look at what can be done to make the the tables look a bit nicer 😄 |
Separated the tables. 🙂 |
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.
Thanks! Let's get this merged.
Description
This PR updates the keyboard shortcuts section of the FAQ to show the Windows/Linux keyboard shortcuts in addition to the macOS shortcuts.
Detailed changes
<kbd>
for the entire shortcut and nested<kbd>
s for each individual key. This is to be be more semantically correct according to the HTML 5.2 specification.Modifier keys in Windows/Linux keyboard shortcuts include the technically correct symbols according to ISO/IEC 9995-7 and ISO 7000, which means using "⎇" for Alt, "⌫" for Backspace, "⎈" for Ctrl, "⎋" for Esc, and "⇧" for Shift.