feat(a11y): standalone scanner on the shared engine (A11Y-CLEAR / A11Y-NO-NEW); guardrails drops the a11y domain

This commit is contained in:
bchanot committed 2026-10-19 00:40:26 +02:00
1 parent b4ef6ae359
commit 6e79d182e3
7 files changed
+213 -39

No files matched your search

@@ -0,0 +1,31 @@
export function ContactForm({ go }: { go: () => void }) {
return (
<form>
<label htmlFor="email">Email</label>
<input id="email" type="email" />
<label>
Message
<textarea name="msg" />
</label>
<input type="hidden" name="token" value="x" />
<img src="/logo.png" alt="Company logo" />
<img src="/divider.png" alt="" />
<button
type="submit"
className="btn outline-none focus-visible:ring-2 focus-visible:ring-blue-500"
>
Send
</button>
<div role="button" tabIndex={0} onClick={go} onKeyDown={go}>
Open
</div>
<div role="presentation" onClick={go}>
<div role="dialog" aria-modal="true" onClick={(e) => e.stopPropagation()}>
Dialog
</div>
</div>
<input type="file" className="hidden" />
<div className="backdrop" onClick={go} />
</form>
);
}
+13
View File
@@ -0,0 +1,13 @@
:focus-visible {
outline: 2px solid #1a4fd6;
outline-offset: 2px;
}
button:focus:not(:focus-visible) {
outline: none;
}
.search:focus {
outline: none;
border-color: #1a4fd6;
}