Make ULS trigger and settings more keyboard accessible
It's now possible to tab to "display settings" and "input settings" and access them with enter or space. Also escape can now be used to close the settings screen. The ULS trigger in interlanguage position is a button to get native accessibility features. Also removed `mw.hook( 'mw.uls.settings.open' ).fire( 'uls' );` as it didn't seem very useful and there wasn't immediately obvious place to put it. The existing click handler could be removed because the settings dialog themselves place event listeners. The patch is a bit longer than strictly necessary because the CSS was mess (rules in different modules, poorly organized) and I had to bring related rules together to understand them. Bug: T52793 Change-Id: Id37c2665b1c97b81ef57be27a1abfae0db6b34d5
This commit is contained in:
committed by
petarpetkovic
parent
75e80446cb
commit
fca9b5c0e6
@@ -2,12 +2,22 @@
|
||||
@import 'mediawiki.mixins';
|
||||
|
||||
#p-lang .uls-settings-trigger {
|
||||
background: transparent no-repeat right top;
|
||||
background: transparent no-repeat center top;
|
||||
.background-image-svg( '../images/cog-sprite.svg', '../images/cog-sprite.png' );
|
||||
height: 16px;
|
||||
width: 14px;
|
||||
border: 0;
|
||||
min-height: 16px;
|
||||
min-width: 16px;
|
||||
float: right;
|
||||
cursor: pointer;
|
||||
|
||||
// Remove the dotted border for Firefox
|
||||
&::-moz-focus-inner {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: 1px solid #36c;
|
||||
}
|
||||
}
|
||||
|
||||
.skin-vector #p-lang .uls-settings-trigger {
|
||||
@@ -16,5 +26,5 @@
|
||||
}
|
||||
|
||||
#p-lang .uls-settings-trigger:hover {
|
||||
background-position: right -16px;
|
||||
background-position: center -16px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user