Closed Bug 2016690 Opened 7 months ago Closed 7 months ago

Learn More link is not accessible via keyboard

Categories

(Firefox :: Translations, defect)

Firefox 149
Desktop
All
defect

Tracking

()

VERIFIED FIXED
150 Branch
Accessibility Severity s2
Tracking Status
firefox149 --- wontfix
firefox150 --- verified

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:

  1. Navigate to about:translations.
  2. Try to navigate to the “X” (clear source text) button in the input field using the keyboard.
  3. 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.

Marking s2 because of keyboard inoperability

Accessibility Severity: --- → s2
Severity: -- → S2
Blocks: 1970963, 2004463
No longer blocks: 2004454
Blocks: 2004454

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.

Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → INVALID

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.

Flags: needinfo?(enordin)
See Also: → 1055085, 1655503, 1936648
Summary: Clear source text button (X) and Learn More link are not accessible via keyboard → Learn More link is not accessible via keyboard
Status: RESOLVED → REOPENED
Resolution: INVALID → ---

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.

Flags: needinfo?(enordin)

This commit ensures that the primary learn-more link on the page
is focusible via tab index.

Assignee: nobody → enordin
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ad604c5b4569 https://hg.mozilla.org/integration/autoland/rev/f3307d9c78de Revert "Bug 2016690 - Ensure primary learn-more link is focusible r=sfoster" for causing bc failures @ browser_MLSuggest_integration.js

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.

Flags: needinfo?(enordin)
Status: REOPENED → RESOLVED
Closed: 7 months ago → 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch

The patch landed in nightly and beta is affected.
:nordzilla, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(enordin)

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.

Flags: needinfo?(enordin)

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.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: