mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Remove hidden .site-nav from accessibility tree (#615)
This commit is contained in:
parent
eb743c3b0f
commit
dcc5868438
@ -226,7 +226,9 @@ site-nav-hide-by-default() {
|
||||
--scroll-height: 0;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
transition: height $transition-ease;
|
||||
transition: $transition-ease;
|
||||
transition-property: height, visibility;
|
||||
visibility: hidden;
|
||||
|
||||
body:not(.site-nav-on) & .animated {
|
||||
animation: none;
|
||||
@ -234,6 +236,7 @@ site-nav-hide-by-default() {
|
||||
|
||||
body.site-nav-on & {
|
||||
height: var(--scroll-height);
|
||||
visibility: unset;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user