fix: fix nav links in Voice Control on iOS (#1746)

fixes #1735
This commit is contained in:
Nolan Lawson 2020-04-25 19:35:03 -07:00 committed by GitHub
parent 1f0d67fcc4
commit a4a9cb7962
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,18 @@
@media (max-width: 991px) {
.main-nav-link .nav-link-label {
display: none;
/* Copied from the sr-only styles in global.scss
* the reason we explicitly leave this <span> in is because Voice Control on iOS does not
* understand aria-labels very well, but it understands hidden text just fine
*/
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
}
</style>