Learn More link is not accessible via keyboard
Categories
(Firefox :: Translations, defect)
Tracking
()
People
(Reporter: gmoldovan, Assigned: nordzilla)
References
(Blocks 1 open bug)
Details
(Keywords: access)
Attachments
(1 file)
Found in:
- latest Nightly 149.0a1
Affected versions:
- latest Nightly 149.0a1
Tested platforms:
- Windows 11 with NVDA
- Ubuntu 24.04 with Orca
Steps to reproduce:
- Navigate to about:translations.
- Try to navigate to the “X” (clear source text) button in the input field using the keyboard.
- Try to navigate to the Learn More link using the keyboard.
Expected:
- The “X” button and Learn More link should be reachable and operable via keyboard.
Actual:
- The “X” button and Learn More link are not accessible via keyboard.
Regression range:
- Not a regression.
Additional notes:
- Because these elements are not reachable via keyboard, screean readers do not read them.
- On Windows, NVDA reads the buttons but only on hover.
Comment 1•7 months ago
|
||
Marking s2 because of keyboard inoperability
Updated•7 months ago
|
| Assignee | ||
Updated•7 months ago
|
| Assignee | ||
Comment 2•7 months ago
•
|
||
This is actually intentional behavior, which I discussed ahead of time with Anna.
The intent is that the source text and translated text are only one Tab/Shift + Tab away from each other.
Keyboard users can easily clear the text with Ctrl/Cmd + A then Delete, which is a common and universal pattern.
The clear-source-text button is more of a visual convenience feature, that would be in between the source text and translated text in the tab index, so it is excluded from the tab index entirely with intention.
Comment 3•7 months ago
•
|
||
Confirming the x is not expected to be focusable with keyboard, similarly to the native data:text/html,<input type=search value=test> search input that would show the x control but this moz-search-clear-button would not be included in the focus order. It was discussed initially in the bug 1655503 and further in the bug 1936648, with bug 1055085 providing support for Esc to clear search inputs by default.
In this case, the x button is still exposed to assistive technology, so a voice control user would be able to activate this button, which is appropriate in this case.
@Erik, would that be possible to add Esc key support for clearing the inputs (while an input itself is focused, of course)? Not a blocker though.
Reopening this bug for the Learn more link focusability that is still present and not expected.
Seems like the hyperlink is not created because a valid href attribute is missing from the <a> anchor element, thus the element is clickable but not focusable or operable with keyboard in any other way.
Current Code:
<a id="about-translations-learn-more-link" is="moz-support-link" data-l10n-id="about-translations-learn-more-link" support-page="website-translation">Learn more</a>
Adding href="#" to the anchor resolves the issue.
Updated•7 months ago
|
| Assignee | ||
Comment 4•7 months ago
•
|
||
Thank you Anna!
I have a fix for this D282206. It was just a drive-by fix that I added within a larger patch stack that is currently in review. Now that this bug is its focus, however, I will reassign the patch to this bug number.
@Erik, would that be possible to add Esc key support for clearing the inputs (while an input itself is focused, of course)? Not a blocker though.
I will file a bug for this and prioritize it after all of the mission-critical work. Shouldn't be difficult to do.
| Assignee | ||
Comment 5•7 months ago
|
||
This commit ensures that the primary learn-more link on the page
is focusible via tab index.
Updated•7 months ago
|
Comment 8•7 months ago
|
||
Backed out for causing bc failures @ browser_MLSuggest_integration.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/f3307d9c78de4c7b20614a7fed6f41c3e248f281
Failure log -> browser/components/urlbar/tests/browser/browser_MLSuggest_integration.js
| Assignee | ||
Comment 9•7 months ago
|
||
This is part of a single backout that spanned multiple bugs.
In the patch stack, I increased the timeout when waiting for a mocked RemoteSettings model to download within our Translations tests, hoping that it might also help to reduce intermittent Translations test failures.
There are a few ml related tests that share our Remote Settings mocks. This test case happens to wait for the full duration of the timeout as part of the success path of the test case.
I've reverted the timeout change, and everything should hopefully be fine now.
I would one day like to either fully separate this code, or unify it in a way that ml doesn't rely on Translations under the hood, so that its more clear where the downstream consumers are.
| Assignee | ||
Comment 10•7 months ago
|
||
Restoring the original timeout seems to have fixed the issue:
- https://hg.mozilla.org/try/rev/f90e8c8356a1b6f859b28cf430158700cbf43901
- https://treeherder.mozilla.org/jobs?repo=try&revision=c4b57d3456613bf4d05a01e04ce95a3679a2c8db
Attempting re-landing.
Comment 11•7 months ago
|
||
Comment 12•7 months ago
|
||
| bugherder | ||
Comment 13•7 months ago
|
||
The patch landed in nightly and beta is affected.
:nordzilla, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- See https://wiki.mozilla.org/Release_Management/Requesting_an_Uplift for documentation on how to request an uplift.
- If no, please set
status-firefox149towontfix.
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 14•7 months ago
|
||
While 149 is technically affected, the "official" feature release for the about:translations page is Firefox 150, so I don't think this needs to be uplifted.
Updated•6 months ago
|
| Reporter | ||
Comment 15•6 months ago
|
||
Verified as fixed on Windows 11, Ubuntu 24.04, and macOS 26 using the latest Nightly 150.0a1 build (20260311050622).
The Learn More link is now accessible via keyboard navigation and is correctly announced by screen readers on all tested operating systems.
Description
•