Add keyboard navigation to generator switcher
Some checks are pending
Deploy to GitHub Pages / build (push) Waiting to run
Deploy to GitHub Pages / deploy (push) Blocked by required conditions

This commit is contained in:
Misode
2025-01-27 23:13:10 +01:00
parent 953425b800
commit c4a9bc06fa
2 changed files with 37 additions and 3 deletions

View File

@@ -234,6 +234,10 @@ nav li .btn svg {
background-color: var(--background-1);
}
.gen-results > a {
outline-offset: -2px;
}
.gen-results > a svg {
width: 16px;
height: 16px;
@@ -243,10 +247,12 @@ nav li .btn svg {
transition: margin 0.2s;
}
.gen-results > a:focus-visible,
.gen-results > a:hover {
background-color: var(--background-3);
}
.gen-results > a:focus-visible svg,
.gen-results > a:hover svg {
margin-left: 14px;
margin-right: 0px;