-
Notifications
You must be signed in to change notification settings - Fork 336
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
Exit this page: Add attached keyboard help text #3268
Exit this page: Add attached keyboard help text #3268
Conversation
255ac29
to
2e860e8
Compare
Removes use of inline-block/inline-flex. These were redundant as the EtP button container is either full-width (mobile) or floated (tablet, desktop). In both situations, `display: block` is either desirable or enforced by the browser due to the float. Curiously, having the `@supports` query appear before the `@media` query seemed to be the only reason styles were broken on IE—the `@media` query was being ignored completely. Simply swapping them around fixed the IE layout weirdness.
Make it look a little more key-ish
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.
This looks grand. I really like the use of kbd
which has surprisingly decent support across browsers. I've added some small comments and have some general opinions:
- I'm personally ok with the instructions not being clickable. In the demo where we had it before it wasn't clickable but that's not necessarily a reason not to say it should be.
- I'm not super happy that we're not showing the instructions on small screens, mostly for the zoom case, but it feels like the correct call. Whilst I don't think it takes up that much space, the likelihood of a user using mobile and having a keyboard is lower (though not impossible) and might insight the worry that you mentioned of folks expecting there to be something to press on the screen itself.
- Your concerns about the wording here may be solved by @calvin-lau-sig7's microcopy work
As usual, it's worth getting others' opinions here, notably a designer and @davidc-gds if he can spare the time.
Fix some styles and whitespace that was affecting how VoiceOver read the elements
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.
Code looking good. I'd still like for a designer to check this out before we proceed.
I would feel more comfortable with the longer text here. I think that users are likely to think that they can click it before associating it with the keyboard itself. Though I do like the stylisation of shift, I'd want @davidc-gds opinion to make sure that we're comfortable that this would still pass accessibility tests. My only concern would be it being images/words which I know @calvin-lau-sig7 has been looking at too. Otherwise it looks really great. I think the additional text help it really useful to users. Great work :) |
* @see Default value for {@link ExitThisPageConfig.i18n} | ||
* @default | ||
*/ | ||
var EXIT_THIS_PAGE_TRANSLATIONS = { |
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.
A general comment that even if we end up putting this work down for now, we should retain this as it's good for getting the final code up to scratch.
Consensus has been not to merge for now. |
Re-introduces having keyboard instructions "Press Shift 3 times" adjacent to the Exit this Page button, as per investigation #3267.
This is done on the hypothesis that having that guidance next to the button is clearer to an end user than having the equivalent instructions on a separate guidance page.
Changes
Things to consider