Closed Bug 1900023 Opened 4 months ago Closed 3 months ago

Using keyboard to navigating through the settings button and its submenu are inconsistent on MacOS

Categories

(Firefox :: Translations, defect, P3)

Desktop
macOS
defect

Tracking

()

VERIFIED FIXED
129 Branch
Accessibility Severity s3
Tracking Status
firefox128 --- verified
firefox129 --- verified

People

(Reporter: danibodea, Assigned: nordzilla)

References

Details

(Keywords: access)

Attachments

(2 files, 1 obsolete file)

Note

  • On MacOS, if the user uses keyboard navigation to activate the Settings button, he will need to use the SPACE key explicitly, however, to activate on of its submenu buttons, he needs to use the ENTER key explicitly. This flow is quite confusing since the user has to know to use SPACE, and then ENTER.
  • The underlying problem seems to be the fact that if the user taps SPACE after opening the settings submenu, then the Settings button appears to activate again instead of the selected submenu option. This underlying issue is present on all operating systems, but it is worse on MacOS because no panel origin buttons can be activated using ENTER key, only SPACE key.

Found in

  • Nightly v128.0a1

Affected versions

  • Nightly v128.0a1

Tested platforms

  • Affected platforms: MacOS 11
  • Unaffected platforms: Windows10, Ubuntu22

Steps to reproduce

  1. Load a webpage that is displayed in a different language than the browser's (and supported by the feature).
  2. Open the context menu on a selection of text or a translatable link.
  3. Select the Translate option.
  4. Use keyboard navigation (TAB key) to focus the Settings button (cog icon).
  5. Press SPACE to activate button.
  6. Choose a submenu option (Up/Down arrow keys).
  7. Press SPACE to activate option.

Expected result

  • The submenu option is activated and the user is redirected correctly.

Actual result

  • The Settings (cog) button displays the animation of being pressed and nothing happens.

Regression range

  • not a regression.
Priority: -- → P3
Summary: Using keyboard to navigating through the settings buttin and its submenu is inconsistent on MacOS → Using keyboard to navigating through the settings button and its submenu are inconsistent on MacOS
Accessibility Severity: --- → s3

The severity field for this bug is set to S4. However, the accessibility severity is higher, .
:nordzilla, could you consider increasing the severity?

For more information, please visit BugBot documentation.

Flags: needinfo?(enordin)
Flags: needinfo?(enordin)
Severity: S4 → S3

This patch ensures that every button in the SelectTranslationsPanel
can be invoked both with the Enter key or the space bar on all
operating systems.

Assignee: nobody → enordin
Status: NEW → ASSIGNED
Attachment #9407314 - Attachment description: Bug 1900023 - Fix SelectTranslationsPanel keyboard navigation r=#translations-reviewers!,ohall → Bug 1900023 - Fix SelectTranslationsPanel keyboard navigation on macOS r=#translations-reviewers!,ohall
Pushed by enordin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/65f814530374 Fix SelectTranslationsPanel keyboard navigation on macOS r=ohall,translations-reviewers
Regressions: 1902583
Regressions: 1902717
Regressions: 1902614
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch

This patch ensures that every button in the SelectTranslationsPanel
can be invoked both with the Enter key or the space bar on all
operating systems.

Original Revision: https://phabricator.services.mozilla.com/D213635

Attachment #9407744 - Flags: approval-mozilla-beta?

This patch ensures that every button in the SelectTranslationsPanel
can be invoked both with the Enter key or the space bar on all
operating systems.

Original Revision: https://phabricator.services.mozilla.com/D213635

Attachment #9407749 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: This patch stack fixes keyboard navigation in the Select Translations Panel on macOS, ensuring that we provide a uniform keyboard navigation experience across all platforms.
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: QA will already be verifying all of this in the beta test process for Select Translations
  • Risk associated with taking this patch: Low Risk
  • Explanation of risk level: These changes only affect the Select Translations Panel functionality on macOS. There are, unfortunately, still some intermittent test failures associated with the new tests that I added in this stack, which I am still trying to eliminate, but I think that this patch would be worth uplifting regardless.
  • String changes made/needed: None
  • Is Android affected?: no
Attachment #9407744 - Attachment is obsolete: true
Attachment #9407744 - Flags: approval-mozilla-beta?

I can confirm that the settings button can be enabled with the ENTER key, along with the Copy, Translate full page and Done buttons. The drop-down buttons continue to be accessed using the down arrow key. It has been tested on MacOS11 in Nightly v129.0a1.

Status: RESOLVED → VERIFIED
Attachment #9407749 - Attachment description: Bug 1900023 - Fix SelectTranslationsPanel keyboard navigation on macOS → WIP: Bug 1900023 - Fix SelectTranslationsPanel keyboard navigation on macOS
Attachment #9407749 - Flags: approval-mozilla-beta?
Attachment #9407749 - Attachment description: WIP: Bug 1900023 - Fix SelectTranslationsPanel keyboard navigation on macOS → Bug 1900023 - Fix SelectTranslationsPanel keyboard navigation on macOS
Attachment #9407749 - Flags: approval-mozilla-beta?
Attachment #9407749 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

I can confirm that the ENTER key can be used to activate all panel buttons across all operating systems. Tested in Windows10, MacOS11, Ubuntu22 in Beta v128.0b5.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: