mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-06 00:37:23 +00:00
Update AI context for Tailwind v4 and React 19
- AGENTS.md: describe ui components as React 19 ref-as-prop function components using data-slot and the unified radix-ui package - theming skill: register fonts and color tokens via @theme in src/index.css (no tailwind.config.ts); fix color values to use the hsl() wrapper that matches the real index.css - ai-chat skill: import VisuallyHidden from the unified radix-ui package - nwc skill: convert ZapDialog/WalletModal forwardRef to ref-as-prop - edit-profile skill: drop React.FC in favor of plain function typing
This commit is contained in:
6 files changed
+41
-44
No files matched your search
@@ -268,12 +268,12 @@ import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } f
|
||||
**Important**: Even if you want to hide the title visually, use the `VisuallyHidden` component to maintain accessibility:
|
||||
|
||||
```tsx
|
||||
import { VisuallyHidden } from "@radix-ui/react-visually-hidden";
|
||||
import { VisuallyHidden } from "radix-ui";
|
||||
|
||||
<DialogHeader>
|
||||
<VisuallyHidden>
|
||||
<VisuallyHidden.Root>
|
||||
<DialogTitle>Hidden Title for Screen Readers</DialogTitle>
|
||||
</VisuallyHidden>
|
||||
</VisuallyHidden.Root>
|
||||
</DialogHeader>
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user