Closed Bug 1483577 Opened 6 years ago Closed 6 years ago

[tour] Ensure hidden elements cannot get focus while on tour

Categories

(Webtools Graveyard :: Pontoon, enhancement, P2)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Pike, Assigned: vishalcr7)

Details

Attachments

(3 files)

While going through the tour on stage, I decided to check if there's keyboard navigation, so I started hitting enter and tab in various combinations.

You can get the tour into very funny states with that.

We should make sure that the hidden pontoon UI doesn't get keyboard focus and input and tries to react to it.
Assignee: nobody → vishaliitr7
Status: NEW → ASSIGNED
Priority: -- → P2
Summary: Tour triggers errors when playing with the keyboard → [tour] Tour triggers errors when playing with the keyboard
I think this is not the correct way to phrase this issue. The actual problem here is one of accessibility more than possible breakage of the app. Anyone randomly hitting keys on their keyboard will get in a funny state in most website as far as I know. However, it is true that in its current state, the tour is not accessible, since a screen reader will read and focus on many hidden UI elements before getting to the tour elements. I believe that is the important thing to solve. And I think it's a bit more difficult than just preventing the tab key to have effect while the tour is active. 

Note that I am not confident this is something we want to actually solve now. I have no idea how accessible the current Translate app is. I'm making efforts to make it good with Translate.Next, so maybe if this is a too big effort, we should not fix this issue and ensure it works correctly with the next version of the Translate app?
Axel, thoughts?
Flags: needinfo?(l10n)
In the screenshot above, you notice that there's some sort of error message showing up visually. "Forbidden page body {back..." in the lower left corner.

I don't think those errors have something to do with a11y. That said, I do think that having a good a11y story for pontoon would be nice.
Flags: needinfo?(l10n)
Steps to reproduce the bug in the attachment:

1. Go to any translate page, e.g.:
https://mozilla-pontoon-staging.herokuapp.com/sl/firefox/browser/branding/official/brand.dtd/?string=74127

2. Make sure you're logged out.

3. Press Tab 3 times to focus the translation field.

4. Press Enter to submit translation.
After discussing this in our weekly meeting today, I propose we split this into two issues. The underlying issue that we can see in Axel's screenshot will be covered in bug 1490026.

This bug should focus on making sure that, while the tour is active, hidden elements of the page cannot receive the focus. Only the tour elements themselves, and the elements being shown, should be able to receive focus through keyboard navigation.
Summary: [tour] Tour triggers errors when playing with the keyboard → [tour] Ensure hidden elements cannot get focus while on tour
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: