aboutsummaryrefslogtreecommitdiffstats
path: root/resources/lib/oojs-ui/oojs-ui.js
diff options
context:
space:
mode:
authorJames D. Forrester <jforrester@wikimedia.org>2014-07-02 09:19:00 -0700
committerJames D. Forrester <jforrester@wikimedia.org>2014-07-02 09:20:54 -0700
commit66a7abfd9770304df1ac96b28ae9114d313b90bb (patch)
treebe1f470bbb921c4be33e78ca03ec9cc3362b05e3 /resources/lib/oojs-ui/oojs-ui.js
parent7cf1051458e2211b154aeb8da79d7286613c6a3a (diff)
downloadmediawikicore-66a7abfd9770304df1ac96b28ae9114d313b90bb.tar.gz
mediawikicore-66a7abfd9770304df1ac96b28ae9114d313b90bb.zip
Update OOjs UI to v0.1.0-pre (432a76f7d4)
New changes: ebfa365 Generate RTL stylesheets with CSSJanus da83ad2 Set tabindex on button <div> instead of <a> e2a6bb1 Add tabindex=0 and role=button to tool links 432a76f Run node-svgo to crush all SVGs whilst retaining readibility Change-Id: Ieb775472b05acf42aada190a49f9f768ddcd5084
Diffstat (limited to 'resources/lib/oojs-ui/oojs-ui.js')
-rw-r--r--resources/lib/oojs-ui/oojs-ui.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/resources/lib/oojs-ui/oojs-ui.js b/resources/lib/oojs-ui/oojs-ui.js
index 0262042f5992..dd1335028c4b 100644
--- a/resources/lib/oojs-ui/oojs-ui.js
+++ b/resources/lib/oojs-ui/oojs-ui.js
@@ -1,12 +1,12 @@
/*!
- * OOjs UI v0.1.0-pre (a63f03882e)
+ * OOjs UI v0.1.0-pre (432a76f7d4)
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2014 OOjs Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2014-06-27T23:51:18Z
+ * Date: 2014-07-02T16:19:00Z
*/
( function ( OO ) {
@@ -2136,11 +2136,12 @@ OO.ui.ButtonedElement = function OoUiButtonedElement( $button, config ) {
this.$button.on( 'mousedown', OO.ui.bind( this.onMouseDown, this ) );
// Initialization
- this.$element.addClass( 'oo-ui-buttonedElement' );
+ this.$element
+ .addClass( 'oo-ui-buttonedElement' )
+ .prop( 'tabIndex', config.tabIndex || 0 );
this.$button
.addClass( 'oo-ui-buttonedElement-button' )
- .attr( 'role', 'button' )
- .prop( 'tabIndex', config.tabIndex || 0 );
+ .attr( 'role', 'button' );
if ( config.frameless ) {
this.$element.addClass( 'oo-ui-buttonedElement-frameless' );
} else {
@@ -3118,7 +3119,9 @@ OO.ui.Tool = function OoUiTool( toolGroup, config ) {
this.$title.addClass( 'oo-ui-tool-title' );
this.$link
.addClass( 'oo-ui-tool-link' )
- .append( this.$icon, this.$title );
+ .append( this.$icon, this.$title )
+ .prop( 'tabIndex', 0 )
+ .attr( 'role', 'button' );
this.$element
.data( 'oo-ui-tool', this )
.addClass(