-
Notifications
You must be signed in to change notification settings - Fork 338
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 text to the "ghost page" button feature #3305
Exit this Page: Add text to the "ghost page" button feature #3305
Conversation
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 looks good to me.
I assume we're OK leaving $updateSpan
reading "[...] press 2 of 3" on activation given we're leaving the page anyway at this point—with either the overlay or the browser hijacking any further screen reader announcements.
I see there's still a discussion ongoing about what the ghost page's text should say, so I won't weigh in on that just yet.
dfe38eb
to
2b30002
Compare
@querkmachine Re: clearing the span, I think that it doesn't really make a difference but it probably can't hurt to clear it. Cheers for pointing it out. |
This generally looks good to me, and I'll add to the discussion of what the text should actually say in the internal microcopy doc. 👍 I've been one of the more vocal proponents for having some kind of status on the blank / loading / ghost page, especially as a way to assure people that the page didn't just crash when they're navigating on a slow connection. After seeing it in action, I'm still in favour of it, with a couple extra notes of details:
|
As another thing that just popped into my head during discussions on Slack: We haven't done anything to ensure that the content beneath the overlay stops being accessible, via keyboard navigation, assistive tech or other means. Whilst probably a minor issue given the user will be in the process of directing away from the page anyway, it could potentially lead to the accidental activation of a different control or announcement of different text after the EtP button has been activated. |
100% agree with renaming the page to loading overlay, feels more in the style of calling it what is it. |
"Exiting this page" (telling the user they've successfully activated Exit this Page) and "Loading" (You are going to a new website) are 2 separate messages, but combining them does make sense if WCAGs allow. Just "Loading" might be enough to assure the user that they've activated Exit this page correctly, but it'd be nice to reinforce somehow. Is there any other way to give an audio indication that Exit this page has activated? |
Some thoughts from the discussion so far: Firstly, after seeing this in action I also don't hate it. This isn't 100% informed but my instinct is that this isn't significant or unusual enough that going to put users at risk like we assessed (one for the community crit?). Secondly, I agree that we should do something about moving focus and blocking the page for the user. I'll work on this next once I'm back from AL. Finally, on the announcement itself and the inconsistency in how it's announced across screen readers. I don't see a huge amount of harm in having a generic message like "loading" to signify button activation. I also don't think it only being announced some of the time is a major problem. As a reminder, this was found during the testing for #3221 that SRs were rarely announcing the activation message over letting the user know that they were on a new page. I suspect this is the result of a race condition where the browser navigation is "beating" the activation message 99% of the time. I don't think we should be trying to "hack" our screen reader setup to be more consistent with the exact announcement ecosystem we want, in part because I don't think there's a positive way to do so. I'm personally in favour of giving way to the opinion of screen readers ie: the screen readers think that telling a user they've navigated is more important than quickly announcing this message before navigation, therefore that's what we should accept. |
2b30002
to
ada25de
Compare
ada25de
to
b667c05
Compare
b667c05
to
61e1cb0
Compare
Okie dokie, I've fixed the navigation under the overlay issue by adding a class to the body which sets everything to display none. From some light testing, I don't think this requires an More broadly, I think we're in agreement that we're actually gonna implement this and that the current solution works nicely? Calling additionally on @calvin-lau-sig7 and @Ciandelle as folks in the convo so far for any additional thoughts. |
61e1cb0
to
d4a3790
Compare
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 couple of non-blocking comments. Happy with everything else!
I'm inclined to say let's !important
it.
Heya! I've read through the comments here and this is the only piece that seems unresolved: to I agree with @querkmachine that this is kind of the situation for which
|
Going back to Ciandelle and Calvin's comments about the wording. Whilst 'exiting this page' and 'loading' are two different messages, and the former is a more accurate description of what's happening, I err on the side of 'loading page' to avoid any association with Exit this Page. |
d4a3790
to
660e062
Compare
What/Why
Adds text to the "ghost page" feature of the exit this page button so that we can revisit if this has a positive or negative impact on users. The text is unbranded and unstyled.
Additionally this change moves the button activation announcement for screen readers to the ghost page itself as opposed to the announcement
span
being used currently.Closes #3266
Notes
From a quick screen reader test, as I've been finding whilst working on #3061, there is an inconsistency in the button activation alert being announced before the screen reader "beats" the announcement and starts instead announcing navigation and the new page.