Clearer focus ring for all elements

This commit is contained in:
Benji Grant 2023-06-09 02:59:42 +10:00
parent c6875b0332
commit c4d47cd034
13 changed files with 115 additions and 74 deletions

View file

@ -52,6 +52,11 @@
border-top-left-radius: 5px;
border-top-right-radius: 5px;
cursor: pointer;
&:focus-visible {
outline: var(--focus-ring);
outline-offset: 2px;
}
}
.tabSelected {

View file

@ -20,7 +20,6 @@ export const generateMetadata = async ({ params }: PageProps): Promise<Metadata>
const event = await getEvent(params.id).catch(() => undefined)
const { t } = await useTranslation('event')
// TODO: More metadata
return {
title: event?.name ?? t('error.title'),
}

View file

@ -89,6 +89,7 @@ body {
background: var(--background);
color: var(--text);
font-weight: var(--font-weight);
--focus-ring: 2px solid var(--secondary);
}
.light {
@ -131,6 +132,11 @@ body {
a {
color: var(--primary);
border-radius: .2em;
}
a:focus-visible {
outline: var(--focus-ring);
outline-offset: 2px;
}
*::-webkit-scrollbar {