Page MenuHomePhabricator

Adding qualifiers results in the wrong button being focused
Closed, ResolvedPublicBUG REPORT

Description

User story: N/A

We have this:
Tested on Beta. When I add a qualifier to an item, the "Add qualifier" button is focused. Besides being confusing, this seems like an accessibility issue as well as.

We want this:
For the "Add qualifier" button to not be focused. Instead, automatically focus on the Property dropdown menu so users know what to do next: select a property.

GIF (tap to play):

focus button.gif (316×822 px, 271 KB)

Url to test on beta: https://commons.wikimedia.beta.wmflabs.org/wiki/File:Title_0.9209196250626945.png

Acceptance Criteria:

  • When adding a qualifier, the focus should be on "Property" dropdown, not "Add qualifier" button

QA Results

ACStatusDetails
1T223916#5293510

Event Timeline

Change 511684 had a related patch set uploaded (by Matthias Mullie; owner: Matthias Mullie):
[mediawiki/extensions/WikibaseMediaInfo@master] Focus dropdown when clicking button to add new qualifier

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

Change 511684 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Focus dropdown when clicking button to add new qualifier

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

@matthiasmullie This bug was fixed, but has returned in the latest patch that's up on Beta. Could you take a look? Thanks! 😺

Change 516461 had a related patch set uploaded (by Matthias Mullie; owner: Matthias Mullie):
[mediawiki/extensions/WikibaseMediaInfo@master] Focus property when adding new property

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

Oops! I messed up the order of add/focus operations, causing focus to stop working. Patch up, will be fixed shortly!

Change 516461 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Focus property when adding new property

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

Change 518000 had a related patch set uploaded (by Matthias Mullie; owner: Matthias Mullie):
[mediawiki/extensions/WikibaseMediaInfo@wmf/1.34.0-wmf.8] Focus property when adding new property

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

Change 518000 merged by Matthias Mullie:
[mediawiki/extensions/WikibaseMediaInfo@wmf/1.34.0-wmf.8] Focus property when adding new property

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

Edtadros subscribed.

Test Result

Status: ✅ PASS
OS: macOS Mojave
Browser: Chrome
Device: MBP

Test Artifact(s):

Acceptance Criteria:

✅ AC1: When adding a qualifier, the focus should be on "Property" dropdown, not "Add qualifier" button

T223916.gif (1×1 px, 729 KB)

We might revisit this later after more time for community feedback, but this is good to go now.