diff --git a/src/_includes/layouts/base.njk b/src/_includes/layouts/base.njk index 0e6ca3a93a..e671d76c16 100644 --- a/src/_includes/layouts/base.njk +++ b/src/_includes/layouts/base.njk @@ -221,6 +221,7 @@ eleventyComputed: {%- endif -%} + Skip to main content
@@ -313,7 +314,7 @@ eleventyComputed:
-
+
{{ content | safe }}
diff --git a/src/css/algolia-theme.css b/src/css/algolia-theme.css index 771bfc039f..0d4c1fed19 100644 --- a/src/css/algolia-theme.css +++ b/src/css/algolia-theme.css @@ -11,7 +11,8 @@ #algolia-search .aa-DetachedSearchButton:focus, #algolia-search .aa-DetachedSearchButton:focus-within, #algolia-search .aa-DetachedSearchButton:active { - outline: none; + outline: 2px solid theme(colors.indigo.600); + outline-offset: 2px; box-shadow: none; } @@ -21,7 +22,7 @@ } #algolia-search .aa-Form:focus-visible, #algolia-search .aa-Form:focus-within { - box-shadow: none; + box-shadow: 0 0 0 2px theme(colors.indigo.600); outline: none; } #algolia-search .aa-Form .aa-SubmitIcon, diff --git a/src/css/style.css b/src/css/style.css index 359b60e8c2..71a360a9d6 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -17,6 +17,31 @@ @tailwind components; @tailwind utilities; +/* Skip to main content link */ +.skip-to-main { + position: fixed; + top: 0; + left: 1rem; + z-index: 9999; + padding: 0.25rem 0.75rem; + background-color: theme(colors.indigo.600); + color: theme(colors.white); + border-radius: 0 0 0.375rem 0.375rem; + transform: translateY(-100%); + transition: transform 0.2s ease; + text-decoration: none; + font-weight: 500; + font-size: 0.875rem; +} +.skip-to-main:hover { + background-color: theme(colors.indigo.700); +} +.skip-to-main:focus { + transform: translateY(0); + outline: 2px solid theme(colors.indigo.600); + outline-offset: 2px; +} + html, body { font-size: 16px; font-family: 'Helvetica Neue', sans-serif; @@ -1811,6 +1836,11 @@ input[type="range"] { background: theme(colors.indigo.600); } +input[type="range"]:focus-visible { + outline: 2px solid theme(colors.indigo.600); + outline-offset: 2px; +} + /* Thumb: webkit */ input[type="range"]::-webkit-slider-thumb { /* removing default appearance */ @@ -1959,6 +1989,11 @@ lite-youtube::before { animation: gradient-border-rotate 4s linear; } +.ai-chat-box .textarea-wrapper:focus-within { + outline: 2px solid theme(colors.indigo.500); + outline-offset: 3px; +} + /* View transition names for 'morphing-content' are set dynamically via JavaScript for AI modal transitions */ /* View Transition styles for smooth morphing */