Rollup merge of #78868 - notriddle:master, r=GuillaumeGomez

Fix tab focus on restyled switches

Setting a checkbox to `display:none` makes it impossible to tab onto it, which makes the rustdoc settings page completely keyboard inaccessible.
This commit is contained in:
Dylan DPC 2020-11-09 01:13:46 +01:00 committed by GitHub
commit 479817acb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,8 @@
}
.toggle input {
display: none;
opacity: 0;
position: absolute;
}
.select-wrapper {
@ -90,7 +91,7 @@ input:checked + .slider {
}
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
box-shadow: 0 0 0 2px #0a84ff, 0 0 0 6px rgba(10, 132, 255, 0.3);
}
input:checked + .slider:before {