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
31 lines
646 B
Plaintext
31 lines
646 B
Plaintext
/* stylelint-disable selector-max-id */
|
|
@import 'mediawiki.mixins';
|
|
|
|
#p-lang .uls-settings-trigger {
|
|
background: transparent no-repeat center top;
|
|
.background-image-svg( '../images/cog-sprite.svg', '../images/cog-sprite.png' );
|
|
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 {
|
|
/* Put it in the middle of the first row of the section title */
|
|
margin-top: 3px;
|
|
}
|
|
|
|
#p-lang .uls-settings-trigger:hover {
|
|
background-position: center -16px;
|
|
}
|