Page MenuHomePhabricator

[S] Tabs should not hold focus state after being clicked
Closed, ResolvedPublic

Description

The focus rectangle should only be used for keyboard focus, not when you click a tab:

image.png (115×490 px, 9 KB)

Compare with the OOUI functionality:
https://doc.wikimedia.org/oojs-ui/master/demos/?page=widgets&theme=wikimediaui&direction=ltr&platform=desktop#demo-section-tabs

Also the inactive colour is lighter than in OOUI, this should be resolved in one repo or the other.

There should also a be dark blue "pressed" state when the mouse is down.

Acceptance Criteria:

  • Focus rectangle is only visible on keyboard focus, not on click
  • Inactive tab color matches OOUI value
  • Dark blue "pressed" state visible while mouse is down

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
CBogen renamed this task from Tabs should not hold focus state after being clicked to [S] Tabs should not hold focus state after being clicked.Oct 21 2020, 4:34 PM
CBogen added a subscriber: mwilliams.
AnneT updated the task description. (Show Details)

Change 645434 had a related patch set uploaded (by Anne Tomasevich; owner: Anne Tomasevich):
[mediawiki/extensions/WikibaseMediaInfo@master] Only show tab focus styles on keyboard nav

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

Change 645434 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Only show tab focus styles on keyboard nav

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

Etonkovidova updated the task description. (Show Details)
Etonkovidova subscribed.

Checked in commons wmf.26 - all specs are done.