Last modified: 2014-09-26 22:10:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T64924, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62924 - Have mediawiki.ui buttons show focus in a clear and accessible way
Have mediawiki.ui buttons show focus in a clear and accessible way
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
MediaWiki UI (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Prateek Saxena
: accessibility, design
Depends on:
Blocks: 70913
  Show dependency treegraph
 
Reported: 2014-03-21 13:39 UTC by Derk-Jan Hartman
Modified: 2014-09-26 22:10 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
All states of a button (60.61 KB, image/png)
2014-09-23 23:18 UTC, May
Details

Description Derk-Jan Hartman 2014-03-21 13:39:07 UTC
This is just BAD practice. We should by default NOT do this and only very specifically do it if we have real alternative styles.

We currently apply the same style for focus as for hover, which in my opinion is simply not suited for the focus state. The only difference in this hover+focus style from the 'plain' style is a slightly darker green bottom line. I suggest taking a good look at github for instance, where they use a small dotted line, or they show the tooltip of the control for instance (the hover action).

As put eloquently here: "Stop messing with the default focus outline"
http://tjvantoll.com/2013/01/28/stop-messing-with-the-browsers-default-focus-outline/
Comment 1 Bartosz Dziewoński 2014-03-21 13:43:50 UTC
+1, this has been annoying me too. The current indicator is too subtle.
Comment 2 Gerrit Notification Bot 2014-03-21 14:17:14 UTC
Change 119998 had a related patch set uploaded by TheDJ:
Accessibility: Don't remove outlines from focusable elems

https://gerrit.wikimedia.org/r/119998
Comment 3 Matthew Flaschen 2014-03-26 04:31:19 UTC
This is something we discussed a bit before.  We decided to tentatively keep the focus the same as hover, but I agree we should revisit it.

However, as you note, it is possible to make a good focus style that is not the browser's default.  The GitHub one (which I hadn't seen before) is a good example (Go to https://github.com/wikimedia/mediawiki-core then tab and shift-tab around until you get to the Watch/Star/Fork buttons).

Of course, our buttons look quite different from GitHub's, but it should still be possible to find a good distinctive styling.  If not, we can use the browser defaults.
Comment 4 Jared Zimmerman (WMF) 2014-03-26 05:03:04 UTC
Lets revisit this once we have all the controls together in one place (living style guide) rather than while things are still in flux.
Comment 5 Matthew Flaschen 2014-03-27 19:11:42 UTC
All the buttons are in the living style guide at http://tools.wmflabs.org/styleguide/desktop/section-2.html .  I don't think that's a blocker.
Comment 6 Bartosz Dziewoński 2014-03-28 19:46:42 UTC
Given that this is already used in production, I would suggest reverting to the default focus styling while, as Jared puts it, "things are still in flux". We can come up with proper focus styles later.
Comment 7 Gerrit Notification Bot 2014-04-13 09:11:11 UTC
Change 119998 abandoned by TheDJ:
Accessibility: Don't remove outlines from focusable elems

https://gerrit.wikimedia.org/r/119998
Comment 8 May 2014-09-23 23:18:46 UTC
Created attachment 16569 [details]
All states of a button

Added new spec
Comment 9 Jared Zimmerman (WMF) 2014-09-23 23:54:39 UTC
for the lighter and darker versions of the mw.ui colors cna you calculate the HSB differecnes so we can code these with LESS variables rather than hard coding hex values.

e.g. dark green is constructive(minus)HSB 0,0,30 

This way if we need to add new colors, we can specify one value and have light and dark calculated automatically.
Comment 10 Prateek Saxena 2014-09-23 23:56:58 UTC
(In reply to Jared in comment #9)

We could use the same approach as with the bevel where instead of specifying a color we just set it to black with a particular opacity.
Comment 11 Gerrit Notification Bot 2014-09-24 00:02:53 UTC
Change 162514 had a related patch set uploaded by Prtksxna:
buttons: Update focus state

https://gerrit.wikimedia.org/r/162514
Comment 12 Gerrit Notification Bot 2014-09-24 00:02:59 UTC
Change 162515 had a related patch set uploaded by Prtksxna:
buttons: Update focus for quiet buttons

https://gerrit.wikimedia.org/r/162515
Comment 13 Jared Zimmerman (WMF) 2014-09-24 00:04:16 UTC
Depending on the browser/platform that could render differently than having it draw the correct color, but arrive at that color programmatically
Comment 14 Gerrit Notification Bot 2014-09-26 21:29:17 UTC
Change 162514 merged by jenkins-bot:
buttons: Update focus state

https://gerrit.wikimedia.org/r/162514
Comment 15 Gerrit Notification Bot 2014-09-26 21:29:39 UTC
Change 162515 merged by jenkins-bot:
buttons: Update focus for quiet buttons

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

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


Navigation
Links