Commit fb6ba175 authored by Stefan Probst's avatar Stefan Probst
Browse files

style: make pagination input color-scheme-aware

parent 0f5c7291
Pipeline #290454 passed with stages
in 9 minutes and 24 seconds
......@@ -27,5 +27,7 @@
max-width: 3em;
border: none;
border-bottom: 1px solid var(--color-text);
background-color: transparent;
color: var(--color-neutral-800);
}
}
......@@ -126,12 +126,12 @@ function PageInput<TResults, TFilters extends { page: number }>(
<VisuallyHidden>{t(['common', 'pagination', 'go-to-page'])}</VisuallyHidden>
{/* TODO: @react-aria/number-field */}
<input
type="text"
name="page"
min={1}
max={pages}
inputMode="numeric"
defaultValue={page}
inputMode="numeric"
max={pages}
min={1}
name="page"
type="text"
/>
<span aria-hidden>
{t(['common', 'pagination', 'of-pages'], { values: { pages: String(pages) } })}
......
......@@ -2,6 +2,9 @@ import { InitialThemeScript } from '@stefanprobst/next-theme'
import { Head, Html, Main, NextScript } from 'next/document'
import { PreloadData } from '@/lib/core/app/PreloadData'
import { isNonEmptyString } from '@/lib/utils'
const googleSiteId = process.env['NEXT_PUBLIC_GOOGLE_SITE_ID']
export default function Document(): JSX.Element {
return (
......@@ -15,8 +18,7 @@ export default function Document(): JSX.Element {
/> */}
<PreloadData />
<InitialThemeScript />
{typeof process.env['NEXT_PUBLIC_GOOGLE_SITE_ID'] === 'string' &&
process.env['NEXT_PUBLIC_GOOGLE_SITE_ID'].length > 0 ? (
{isNonEmptyString(googleSiteId) ? (
<meta
name="google-site-verification"
content={process.env['NEXT_PUBLIC_GOOGLE_SITE_ID']}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment