(feat): improve secret theme
All checks were successful
/ deploy-and-package (push) Successful in 1m7s

This commit is contained in:
Alois 2026-07-26 18:19:02 +02:00
commit 44ec71417f
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24
2 changed files with 29 additions and 20 deletions

View file

@ -3,7 +3,6 @@ import {
createContext,
useCallback,
useContext,
useEffect,
useLayoutEffect,
useState,
type ReactNode,
@ -94,13 +93,6 @@ function OnboardingFlow({
}
}, [controls, onFinish, pending, showStep, stepIndex, steps.length]);
useEffect(() => {
const heading = document.querySelector<HTMLElement>(
`[data-onboarding-step="${activeStep.id}"] [data-onboarding-title]`,
);
heading?.focus();
}, [activeStep.id]);
return (
<CreateScreen className="h-full w-full items-stretch justify-stretch">
<div className="flex h-full min-h-0 w-full flex-col">
@ -114,7 +106,6 @@ function OnboardingFlow({
<h1
data-onboarding-title
className="font-heading text-3xl font-bold md:text-4xl"
tabIndex={-1}
>
{activeStep.title}
</h1>