diff --git a/app/globals.css b/app/globals.css index d1f74a0..c49a048 100644 --- a/app/globals.css +++ b/app/globals.css @@ -4,6 +4,12 @@ @import "./theme/spacing.css"; @import "./theme/containers.css"; +/* Hash focus from the skip link. Beats the preflight :focus-visible outline. */ +#conteudo:focus, +#conteudo:focus-visible { + outline: none; +} + @custom-variant dark (&:where(.dark, .dark *)); @theme { diff --git a/components/layout/site-shell.tsx b/components/layout/site-shell.tsx index 3d99d47..14a2bab 100644 --- a/components/layout/site-shell.tsx +++ b/components/layout/site-shell.tsx @@ -7,7 +7,9 @@ import { Footer } from '@/components/layout/footer' import { Header } from '@/components/layout/header' import { LoadingBar } from '@/components/layout/loading-indicator' import { NavigationProgress } from '@/components/layout/navigation-progress' +import { SkipLink } from '@/components/layout/skip-link' import { ThemeProvider } from '@/components/theme-provider' +import { getDictionary } from '@/lib/i18n/dictionary' import { htmlLang, type InterfaceLanguage } from '@/lib/i18n/types' import '@/app/globals.css' @@ -31,6 +33,8 @@ export function SiteShell({ language: InterfaceLanguage children: ReactNode }) { + const skipLabel = getDictionary(language).skipLink.label + return ( +
- {children} +
+ {children} +