mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-02 13:52:24 -06:00
[bugfix] Fix a couple accessibility issues with :focus elements (#3979)
* [bugfix/frontend] Fix accessibility/focus issues in settings + web ui * fix little error * tweaks
This commit is contained in:
parent
365b575341
commit
19cfa8d126
24 changed files with 405 additions and 152 deletions
|
|
@ -74,6 +74,14 @@
|
|||
div.blurhash-container > canvas {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/*
|
||||
Hide focus outline on click
|
||||
to avoid ugly artifacts.
|
||||
*/
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
summary {
|
||||
|
|
@ -109,6 +117,16 @@
|
|||
.hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
/*
|
||||
Can't rely on media having background with
|
||||
decent contrast so inset and use button-fg
|
||||
instead so focus is definitely visible.
|
||||
*/
|
||||
outline: 0.25rem dashed $button-fg;
|
||||
outline-offset: -0.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
.show.sensitive {
|
||||
|
|
@ -126,6 +144,21 @@
|
|||
}
|
||||
}
|
||||
|
||||
a.photoswipe-slide {
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
|
||||
/*
|
||||
Inset outline to avoid outline
|
||||
being hidden by overflow: hidden.
|
||||
*/
|
||||
&:focus-visible {
|
||||
outline: $button-focus-outline;
|
||||
outline-offset: -0.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
video.plyr-video, .plyr {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue