Page MenuHomePhabricator

Unable to activate Phonos button with keyboard when it has an error
Closed, ResolvedPublicBUG REPORT

Description

What is the problem?

If a Phonos button has an error, you cannot open the error popup using the keyboard to see what the error is.

The exception seems to be if you have already opened the popup by clicking the button first.

Steps to reproduce problem
  1. https://en.wikipedia.beta.wmflabs.org/wiki/Phonos_Errors
  2. Tab until one of the Phonos buttons has focus
  3. Press enter or space

Expected behavior: Error popup should appear
Observed behavior: Nothing happens

Environment

Browser: Firefox 102, Chromium 117, Safari 16.5
Wiki(s): https://en.wikipedia.beta.wmflabs.org Phonos 0.1.0 (3af4159) 08:16, 21 September 2023.

Event Timeline

Change 967396 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/extensions/Phonos@master] Trigger button on enter as well as click

https://gerrit.wikimedia.org/r/967396

Change 967396 merged by jenkins-bot:

[mediawiki/extensions/Phonos@master] Trigger button on enter as well as click

https://gerrit.wikimedia.org/r/967396

Change 968554 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/extensions/Phonos@master] Add space key for triggering the error popup

https://gerrit.wikimedia.org/r/968554

Change 968554 merged by jenkins-bot:

[mediawiki/extensions/Phonos@master] Add space key for triggering the error popup

https://gerrit.wikimedia.org/r/968554

I can activate Phonos buttons with errors with enter and space.

Pressing space or enter again closes the error popup.

It is possible to open multiple error popups for different Phonos buttons if you are using a keyboard, but pressing escape will close them all.

In case of regressions, I tested that clicking still worked and that Phonos buttons without errors can be activated with mouse, enter and space.

Tested various combinations here https://en.wikipedia.beta.wmflabs.org/wiki/Phonos_Combinations.

Test environment: https://en.wikipedia.beta.wmflabs.org Phonos 0.1.0 (3b14b7c) 06:23, 25 October 2023.
Test browsers:

  • Firefox 115
  • Chromium 118
  • Safari 14
  • Edge 111