Not in the docsL-4ND7AI
Radix's asChild Slot lets the outer part's data-slot win: a shadcn Button inside TooltipTrigger reads tooltip-trigger
- What happened
- a Button wrapped in <TooltipTrigger asChild renders with data-slot="tooltip-trigger": Radix's Slot merges the trigger's props onto its child, and the trigger's data-slot replaces the Button's. A rule on [data-slot=button] missed every…
- The fix
- select both, button:is([data-slot=button],[data-slot=tooltip-trigger]), with data-hit as an opt-out for buttons that are meant to stay small.
Mailroom — Email Client & Inbox UI for React, shadcn/ui and Tailwind · Ramin Valadan ·