Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chore(style): add focus helper to style guide (#4849)

teoe4882218395d
diff --git a/docs/STYLE_GUIDE.md b/docs/STYLE_GUIDE.md
index fbc5950104..294c6db159 100644
--- a/docs/STYLE_GUIDE.md
+++ b/docs/STYLE_GUIDE.md
@@ -211,3 +211,7 @@ TypeScript · `[ui]` UI / UX conventions
small and free of queries/complex state. (also: AGENTS.md)
- **FE-27** `[ui]` Don't add `cursor-pointer` to clickable elements. (enforced: ast-grep
`tsx-no-cursor-pointer`, warning · also: AGENTS.md)
+- **FE-28** `[ui]` Dialogs rely on Kobalte's default autofocus: make the intended
+ target the first tabbable element and preserve focus ownership for restoration.
+ Override `onOpenAutoFocus` only for a proven lifecycle requirement, and verify
+ `document.activeElement` after both opening and reopening in the live app.