diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index fe2308fa7..96d03afcb 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -113,7 +113,11 @@ export default defineConfig({ window.overscrollTimeout = setTimeout(function() { pullDistance = 0; updateOverscroll(0); - }, 300); + }, 5000); + } else if (e.deltaY < 0) { + clearTimeout(window.overscrollTimeout); + pullDistance = 0; + updateOverscroll(0); } } diff --git a/docs/src/components/InstallSelector.astro b/docs/src/components/InstallSelector.astro index 26c975414..4a0b6d1d3 100644 --- a/docs/src/components/InstallSelector.astro +++ b/docs/src/components/InstallSelector.astro @@ -251,6 +251,16 @@ const defaultOption = highlightedOptions[defaultIndex]; background: rgba(255, 255, 255, 0.1); font-weight: 500; } + + .dropdown-option:focus { + outline: none; + background: rgba(255, 255, 255, 0.12); + } + + .dropdown-option:focus-visible { + outline: 2px solid rgba(255, 255, 255, 0.4); + outline-offset: -2px; + }