Repository navigation
fix(core): pass host data-* attributes to the component's own element - #11406
Conversation
MoreMenu, InfoTip, PowerSearch (and its PowerSearchToken and PowerSearchFilterEditor defaults), Toast, and InputClearButton dropped data-* attributes. They now pass them to their own element, as the other components do, and keep their own attributes. A conformance test renders every exported component with a data-* attribute and fails when the attribute does not reach the DOM; box-less components are listed with a reason.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| PowerSearch · Storybook | 301.1 kB (+93 B) · 24.7 kB CSS (0) | 7,159 (+19) | ✓ · ✓ · ✓ |
| Switch | 107.9 kB (+69 B) · 10.0 kB CSS (0) | — | — · — · — |
| lab/CommentThread | 353.8 kB (+61 B) · 2.4 kB CSS (0) | — | — · — · — |
210 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| DateRangeInput | 97.8 kB (+60 B) · 12.9 kB CSS (0) | — | — · — · — |
| Slider | 113.4 kB (+59 B) · 8.8 kB CSS (0) | — | — · — · — |
| lab/Comments | 360.5 kB (+59 B) · 2.5 kB CSS (0) | — | — · — · — |
| lab/CommentComposer | 157.1 kB (+58 B) · 1.9 kB CSS (0) | — | — · — · — |
| MultiSelector | 99.9 kB (+56 B) · 17.2 kB CSS (0) | — | — · — · — |
| Pagination | 115.8 kB (+56 B) · 18.2 kB CSS (0) | — | — · — · — |
| DateTimeInput | 217.1 kB (+55 B) · 19.1 kB CSS (0) | — | — · — · — |
| RadioList | 59.9 kB (+55 B) · 7.3 kB CSS (0) | — | — · — · — |
| FileInput | 72.8 kB (+53 B) · 11.3 kB CSS (0) | — | — · — · — |
| TableHeaderCell | 114.3 kB (+51 B) · 18.0 kB CSS (0) | — | — · — · — |
| TextInput | 71.4 kB (+51 B) · 11.5 kB CSS (0) | — | — · — · — |
| TimeInput | 168.6 kB (+51 B) · 16.4 kB CSS (0) | — | — · — · — |
| DateInput | 194.5 kB (+49 B) · 17.4 kB CSS (0) | — | — · — · — |
| lab/TransferListSelector | 114.8 kB (+49 B) · 1.4 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditor | 302.6 kB (+49 B) · 2.6 kB CSS (0) | — | — · — · — |
| charts/Chart | 210.2 kB (+48 B) · 516 B CSS (0) | — | — · — · — |
| Toast · Storybook | 101.9 kB (+48 B) · 10.6 kB CSS (0) | 1,672 (+2) | ✓ · ✓ · ✓ |
| lab/ChatEmojiPicker | 111.3 kB (+46 B) · 773 B CSS (0) | — | — · — · — |
| lab/SelectableCardGroup | 67.8 kB (+46 B) · 162 B CSS (0) | — | — · — · — |
| CheckboxList | 72.2 kB (+45 B) · 7.8 kB CSS (0) | — | — · — · — |
| CheckboxListItem | 74.8 kB (+45 B) · 11.7 kB CSS (0) | — | — · — · — |
| Selector | 105.6 kB (+45 B) · 17.8 kB CSS (0) | — | — · — · — |
| charts/ChartTooltip | 187.3 kB (+44 B) · 451 B CSS (0) | — | — · — · — |
| FieldLabel | 54.5 kB (+44 B) · 5.7 kB CSS (0) | — | ✓ · ✓ · — |
| CheckboxInput | 68.0 kB (+43 B) · 10.1 kB CSS (0) | — | — · — · — |
| TableCell | 114.7 kB (+43 B) · 18.2 kB CSS (0) | — | — · — · — |
| TextArea | 65.9 kB (+43 B) · 9.4 kB CSS (0) | — | — · — · — |
| Typeahead | 86.1 kB (+43 B) · 12.8 kB CSS (0) | — | — · — · — |
| Tokenizer | 102.3 kB (+42 B) · 19.5 kB CSS (0) | — | — · — · — |
| ComplexSelector | 76.1 kB (+41 B) · 12.2 kB CSS (0) | — | — · — · — |
| Markdown | 193.6 kB (+41 B) · 21.0 kB CSS (0) | — | — · — · — |
| lab/EmojiPicker | 90.7 kB (+41 B) · 751 B CSS (0) | — | — · — · — |
| NumberInput | 75.3 kB (+40 B) · 11.8 kB CSS (0) | — | — · — · — |
| lab/ChatReactionBar | 112.5 kB (+39 B) · 1.1 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditorToolbar | 284.9 kB (+38 B) · 454 B CSS (0) | — | — · — · — |
| ContextMenu | 113.4 kB (+36 B) · 17.8 kB CSS (0) | — | — · — · — |
| Field | 58.5 kB (+36 B) · 7.3 kB CSS (0) | — | ✓ · ✓ · — |
| lab/TabBarMoreList | 96.3 kB (+36 B) · 1.8 kB CSS (0) | — | — · — · — |
| lab/ListInput | 91.9 kB (+35 B) · 922 B CSS (0) | — | — · — · — |
| MoreMenu · Storybook | 102.8 kB (+34 B) · 17.9 kB CSS (0) | 94 (+3) | ✓ · ✓ · ✓ |
| ListItem | 74.0 kB (+33 B) · 11.7 kB CSS (0) | — | — · — · — |
| InputGroup | 60.1 kB (+32 B) · 7.9 kB CSS (0) | — | — · — · — |
| DropdownMenu | 102.6 kB (+31 B) · 17.9 kB CSS (0) | — | — · — · — |
| RadioListItem | 71.1 kB (+30 B) · 10.4 kB CSS (0) | — | — · — · — |
| InfoTip · Storybook | 49.6 kB (+29 B) · 5.4 kB CSS (0) | 150 (+3) | ✓ · ✓ · — |
| lab/Schedule | 110.5 kB (+29 B) · 3.9 kB CSS (0) | — | — · — · — |
| charts/ChartLegend | 53.9 kB (+28 B) · 224 B CSS (0) | — | — · — · — |
| ContextMenuItem | 33.5 kB (+27 B) · 6.8 kB CSS (0) | — | — · — · — |
| richtext/RichTextView | 280.3 kB (+22 B) · 2.3 kB CSS (0) | — | — · — · — |
| lab/TransferList | 106.0 kB (+19 B) · 1.2 kB CSS (0) | — | — · — · — |
| Table | 130.6 kB (+17 B) · 18.7 kB CSS (0) | — | — · — · — |
| TopNavMenu | 79.9 kB (+5 B) · 11.6 kB CSS (0) | — | — · — · — |
| FormLayout | 6.9 kB (+3 B) · 3.5 kB CSS (0) | — | — · — · — |
| ChatMessageList | 30.2 kB (+2 B) · 7.1 kB CSS (0) | — | — · — · — |
| Drawer | 52.7 kB (+2 B) · 8.3 kB CSS (0) | — | — · — · — |
| DropdownMenuCheckboxItem | 23.8 kB (+2 B) · 7.0 kB CSS (0) | — | — · — · — |
| HoverCard | 29.6 kB (+2 B) · 4.4 kB CSS (0) | — | — · — · — |
| Link | 55.5 kB (+2 B) · 7.1 kB CSS (0) | — | — · — · — |
| TopNavItem | 14.4 kB (+2 B) · 4.0 kB CSS (0) | — | — · — · — |
| AlertDialog | 109.7 kB (+1 B) · 15.0 kB CSS (0) | — | — · — · — |
| Calendar | 74.8 kB (+1 B) · 10.9 kB CSS (0) | — | — · — · — |
| Carousel | 73.3 kB (+1 B) · 11.3 kB CSS (0) | — | — · — · — |
| ChatComposer | 83.1 kB (+1 B) · 12.4 kB CSS (0) | — | — · — · — |
| ChatLayoutScrollButton | 64.3 kB (+1 B) · 10.5 kB CSS (0) | — | — · — · — |
| Citation | 20.7 kB (+1 B) · 4.4 kB CSS (0) | — | — · — · — |
| CommandPaletteEmpty | 6.5 kB (+1 B) · 3.5 kB CSS (0) | — | — · — · — |
| CommandPaletteInput | 33.9 kB (+1 B) · 7.6 kB CSS (0) | — | — · — · — |
| DialogHeader | 66.6 kB (+1 B) · 11.8 kB CSS (0) | — | — · — · — |
| DrawerHeader | 66.7 kB (+1 B) · 13.3 kB CSS (0) | — | — · — · — |
| DropdownMenuItem | 23.0 kB (+1 B) · 6.6 kB CSS (0) | — | — · — · — |
| DropdownMenuRadioItem | 23.9 kB (+1 B) · 7.0 kB CSS (0) | — | — · — · — |
| Icon | 8.2 kB (+1 B) · 681 B CSS (0) | — | — · — · — |
| ProgressBar | 12.0 kB (+1 B) · 6.4 kB CSS (0) | — | — · — · — |
| SideNavCollapseButton | 64.6 kB (+1 B) · 10.4 kB CSS (0) | — | — · — · — |
| TabMenu | 77.2 kB (+1 B) · 11.5 kB CSS (0) | — | — · — · — |
| ToggleButton | 90.6 kB (+1 B) · 10.4 kB CSS (0) | — | — · — · — |
| TopNav | 76.0 kB (+1 B) · 11.3 kB CSS (0) | — | — · — · — |
| Avatar | 45.2 kB (0) · 5.6 kB CSS (0) | — | — · — · — |
| AvatarGroupOverflow | 51.1 kB (0) · 5.7 kB CSS (0) | — | — · — · — |
| AvatarStatusDot | 7.6 kB (0) · 3.5 kB CSS (0) | — | — · — · — |
| Badge | 4.4 kB (0) · 4.0 kB CSS (0) | — | — · — · — |
| Banner | 65.7 kB (0) · 10.8 kB CSS (0) | — | — · — · — |
| BaseTypeahead | 76.9 kB (0) · 11.3 kB CSS (0) | — | — · — · — |
| Blockquote | 3.7 kB (0) · 3.5 kB CSS (0) | — | — · — · — |
| BottomSheet | 69.9 kB (0) · 7.7 kB CSS (0) | — | — · — · — |
| Breadcrumbs | 16.5 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| Card | 6.9 kB (0) · 6.6 kB CSS (0) | — | — · — · — |
| Center | 4.4 kB (0) · 4.6 kB CSS (0) | — | — · — · — |
| ChatComposerDrawer | 18.2 kB (0) · 4.7 kB CSS (0) | — | — · — · — |
| ChatComposerInput | 80.8 kB (0) · 11.6 kB CSS (0) | — | — · — · — |
| ChatComposerTokenElement | 80.8 kB (0) · 11.6 kB CSS (0) | — | — · — · — |
| ChatMessage | 17.2 kB (0) · 3.7 kB CSS (0) | — | — · — · — |
| ChatMessageMetadata | 20.4 kB (0) · 4.1 kB CSS (0) | — | — · — · — |
| ChatSystemMessage | 7.1 kB (0) · 3.8 kB CSS (0) | — | — · — · — |
| ChatTokenizedText | 7.5 kB (0) · 4.0 kB CSS (0) | — | — · — · — |
| CheckboxIndicator | 2.7 kB (0) · 813 B CSS (0) | — | — · — · — |
| CheckIndicator | 8.4 kB (0) · 681 B CSS (0) | — | — · — · — |
| ClickableCard | 18.4 kB (0) · 7.3 kB CSS (0) | — | — · — · — |
| Code | 3.7 kB (0) · 3.5 kB CSS (0) | — | — · — · — |
| CodeBlock | 78.9 kB (0) · 11.6 kB CSS (0) | — | — · — · — |
| Collapsible | 28.9 kB (0) · 4.5 kB CSS (0) | — | — · — · — |
| CollapsibleGroup | 7.0 kB (0) · 3.3 kB CSS (0) | — | — · — · — |
| CommandPalette | 75.3 kB (0) · 12.7 kB CSS (0) | — | — · — · — |
| CommandPaletteFooter | 17.5 kB (0) · 3.7 kB CSS (0) | — | — · — · — |
| CommandPaletteGroup | 3.7 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| CommandPaletteItem | 13.4 kB (0) · 3.6 kB CSS (0) | — | — · — · — |
| CommandPaletteList | 16.4 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| Dialog | 24.9 kB (0) · 6.9 kB CSS (0) | — | — · — · — |
| Divider | 5.2 kB (0) · 535 B CSS (0) | — | — · — · — |
| DropdownMenuDivider | 5.3 kB (0) · 548 B CSS (0) | — | — · — · — |
| DropdownMenuGroup | 6.4 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| DropdownMenuSubMenu | 73.4 kB (0) · 10.1 kB CSS (0) | — | — · — · — |
| EmptyState | 7.0 kB (0) · 485 B CSS (0) | — | — · — · — |
| FieldStatus | 10.1 kB (0) · 3.6 kB CSS (0) | — | — · — · — |
| Grid | 4.6 kB (0) · 3.8 kB CSS (0) | — | — · — · — |
| GridSpan | 3.6 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| HStack | 6.0 kB (0) · 1.6 kB CSS (0) | — | — · — · — |
| InputGroupText | 6.9 kB (0) · 3.9 kB CSS (0) | — | — · — · — |
| Layout | 7.1 kB (0) · 2.3 kB CSS (0) | — | — · — · — |
| LayoutContent | 17.8 kB (0) · 1.7 kB CSS (0) | — | — · — · — |
| LayoutHeader | 6.3 kB (0) · 1.6 kB CSS (0) | — | — · — · — |
| LayoutPanel | 22.0 kB (0) · 4.9 kB CSS (0) | — | — · — · — |
| Lightbox | 127.7 kB (0) · 10.9 kB CSS (0) | — | — · — · — |
| List | 18.9 kB (0) · 790 B CSS (0) | — | — · — · — |
| MetadataList | 17.3 kB (0) · 3.7 kB CSS (0) | — | — · — · — |
| MetadataListItem | 7.1 kB (0) · 3.5 kB CSS (0) | — | — · — · — |
| MobileNav | 74.3 kB (0) · 11.0 kB CSS (0) | — | — · — · — |
| NavHeadingMenu | 18.2 kB (0) · 3.5 kB CSS (0) | — | — · — · — |
| NavIcon | 3.7 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| Outline | 25.2 kB (0) · 4.1 kB CSS (0) | — | — · — · — |
| OverflowList | 10.7 kB (0) · 3.6 kB CSS (0) | — | — · — · — |
| Overlay | 23.0 kB (0) · 3.9 kB CSS (0) | — | — · — · — |
| Popover | 96.0 kB (0) · 14.6 kB CSS (0) | — | — · — · — |
| RadioIndicator | 2.5 kB (0) · 725 B CSS (0) | — | — · — · — |
| ResizeHandle | 22.3 kB (0) · 4.3 kB CSS (0) | — | — · — · — |
| ScrollableArea | 11.4 kB (0) · 4.2 kB CSS (0) | — | — · — · — |
| Section | 7.8 kB (0) · 6.3 kB CSS (0) | — | — · — · — |
| SegmentedControl | 101.2 kB (0) · 6.9 kB CSS (0) | — | — · — · — |
| SegmentedControlItem | 18.8 kB (0) · 4.3 kB CSS (0) | — | — · — · — |
| SelectableCard | 18.6 kB (0) · 7.5 kB CSS (0) | — | — · — · — |
| SelectorOption | 21.6 kB (0) · 6.4 kB CSS (0) | — | — · — · — |
| SideNav | 119.0 kB (0) · 11.7 kB CSS (0) | — | — · — · — |
| SideNavHeading | 80.9 kB (0) · 11.6 kB CSS (0) | — | — · — · — |
| SideNavItem | 75.4 kB (0) · 11.5 kB CSS (0) | — | — · — · — |
| SideNavSection | 7.1 kB (0) · 3.7 kB CSS (0) | — | — · — · — |
| Skeleton | 4.0 kB (0) · 3.8 kB CSS (0) | — | — · — · — |
| Spinner | 26.8 kB (0) · 6.2 kB CSS (0) | — | — · — · — |
| Stack | 5.8 kB (0) · 1.6 kB CSS (0) | — | — · — · — |
| StatusDot | 33.0 kB (0) · 5.4 kB CSS (0) | — | — · — · — |
| Step | 31.5 kB (0) · 5.6 kB CSS (0) | — | — · — · — |
| Stepper | 65.4 kB (0) · 10.5 kB CSS (0) | — | — · — · — |
| Tab | 14.8 kB (0) · 4.2 kB CSS (0) | — | — · — · — |
| TableBody | 3.5 kB (0) · 3.3 kB CSS (0) | — | — · — · — |
| TableFooter | 3.5 kB (0) · 3.3 kB CSS (0) | — | — · — · — |
| TableHeader | 3.5 kB (0) · 3.3 kB CSS (0) | — | — · — · — |
| TableRow | 7.1 kB (0) · 4.0 kB CSS (0) | — | — · — · — |
| TableSelectionToolbar | 74.0 kB (0) · 13.6 kB CSS (0) | — | — · — · — |
| Text | 13.8 kB (0) · 5.5 kB CSS (0) | — | — · — · — |
| Thumbnail | 68.1 kB (0) · 11.9 kB CSS (0) | — | — · — · — |
| Timestamp | 35.3 kB (0) · 10.6 kB CSS (0) | — | — · — · — |
| Token | 29.2 kB (0) · 4.8 kB CSS (0) | — | — · — · — |
| Toolbar | 46.4 kB (0) · 8.1 kB CSS (0) | — | — · — · — |
| Tooltip | 31.3 kB (0) · 4.4 kB CSS (0) | — | — · — · — |
| TopNavMegaMenu | 74.7 kB (0) · 12.2 kB CSS (0) | — | — · — · — |
| TopNavMegaMenuItem | 14.2 kB (0) · 4.2 kB CSS (0) | — | — · — · — |
| TreeList | 46.2 kB (0) · 5.9 kB CSS (0) | — | — · — · — |
| TypeaheadItem | 6.6 kB (0) · 3.6 kB CSS (0) | — | — · — · — |
| VStack | 6.0 kB (0) · 1.6 kB CSS (0) | — | — · — · — |
| lab/ChatReasoning | 7.2 kB (0) · 967 B CSS (0) | — | — · — · — |
| lab/ChatTypingIndicator | 25.9 kB (0) · 612 B CSS (0) | — | — · — · — |
| lab/ChatUnreadDivider | 3.7 kB (0) · 348 B CSS (0) | — | — · — · — |
| lab/CircleCheckIndicator | 4.6 kB (0) · 1.0 kB CSS (0) | — | — · — · — |
| lab/CircularProgress | 9.1 kB (0) · 880 B CSS (0) | — | — · — · — |
| lab/DialogHeroHeader | 86.8 kB (0) · 372 B CSS (0) | — | — · — · — |
| lab/DiffViewer | 91.3 kB (0) · 2.1 kB CSS (0) | — | — · — · — |
| lab/LogStream | 8.2 kB (0) · 1.6 kB CSS (0) | — | — · — · — |
| lab/NavigationScreen | 84.4 kB (0) · 1.5 kB CSS (0) | — | — · — · — |
| lab/NavigationStack | 84.4 kB (0) · 1.5 kB CSS (0) | — | — · — · — |
| lab/SVGIcon | 7.9 kB (0) · 765 B CSS (0) | — | — · — · — |
| lab/TabBar | 82.9 kB (0) · 1.8 kB CSS (0) | — | — · — · — |
| lab/TabBarItem | 3.9 kB (0) · 1.8 kB CSS (0) | — | — · — · — |
| lab/TourStep | 102.3 kB (0) · 590 B CSS (0) | — | — · — · — |
| lab/WeightedSVGIcon | 5.1 kB (0) · 1.1 kB CSS (0) | — | — · — · — |
| AppShell | 95.5 kB (−1 B) · 13.8 kB CSS (0) | — | — · — · — |
| AspectRatio | 3.9 kB (−1 B) · 3.6 kB CSS (0) | — | — · — · — |
| BreadcrumbItem | 90.1 kB (−1 B) · 12.5 kB CSS (0) | — | — · — · — |
| ButtonGroup | 43.9 kB (−1 B) · 3.7 kB CSS (0) | — | — · — · — |
| ChatLayout | 86.9 kB (−1 B) · 10.9 kB CSS (0) | — | — · — · — |
| ChatMessageBubble | 7.6 kB (−1 B) · 3.7 kB CSS (0) | — | — · — · — |
| ChatSendButton | 64.1 kB (−1 B) · 10.3 kB CSS (0) | — | — · — · — |
| ChatToolCalls | 34.4 kB (−1 B) · 8.4 kB CSS (0) | — | — · — · — |
| Heading | 14.4 kB (−1 B) · 5.5 kB CSS (0) | — | — · — · — |
| IconButton | 63.8 kB (−1 B) · 10.3 kB CSS (0) | — | — · — · — |
| Kbd | 17.2 kB (−1 B) · 3.6 kB CSS (0) | — | — · — · — |
| MobileNavToggle | 64.0 kB (−1 B) · 10.3 kB CSS (0) | — | — · — · — |
| StackItem | 16.4 kB (−1 B) · 219 B CSS (0) | — | — · — · — |
| ToggleButtonGroup | 41.1 kB (−1 B) · 3.7 kB CSS (0) | — | — · — · — |
| lab/Stat | 4.3 kB (−1 B) · 646 B CSS (0) | — | — · — · — |
| Button | 63.7 kB (−2 B) · 10.3 kB CSS (0) | — | — · — · — |
| ChatDictationButton | 64.3 kB (−2 B) · 10.4 kB CSS (0) | — | — · — · — |
| Item | 18.1 kB (−2 B) · 5.9 kB CSS (0) | — | — · — · — |
| TabList | 46.6 kB (−2 B) · 6.5 kB CSS (0) | — | — · — · — |
| Timer | 15.9 kB (−2 B) · 6.0 kB CSS (0) | — | — · — · — |
| TopNavHeading | 80.5 kB (−2 B) · 11.6 kB CSS (0) | — | — · — · — |
| TopNavMegaMenuFeaturedCard | 7.4 kB (−2 B) · 3.6 kB CSS (0) | — | — · — · — |
| lab/LineClamp | 16.0 kB (−2 B) · 168 B CSS (0) | — | — · — · — |
| LayoutFooter | 6.3 kB (−3 B) · 1.6 kB CSS (0) | — | — · — · — |
| lab/CodeEditor | 14.5 kB (−3 B) · 743 B CSS (0) | — | — · — · — |
| lab/CommentPin | 59.5 kB (−3 B) · 1.2 kB CSS (0) | — | — · — · — |
| AvatarGroup | 48.0 kB (−6 B) · 5.8 kB CSS (0) | — | — · — · — |
Package size: @astryxdesign/core 7.40 MB packed (+1.2 kB); no new dependencies.
Touched components checked; add ci:run-visual, ci:run-a11y or ci:run-rtl to run the full suites.
Current run: CI concluded cancelled; parts of this report may be missing.
Generated by PR Enrichment workflow | View full report
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the record edits and on three fixes; the passthrough itself restores the documented host-attribute behaviour.
Spec decision needed: this pull request rewords current requirements in the MoreMenu (FR4), InfoTip (FR3) and PowerSearch component records to say which element receives data-* attributes. An engineering owner, the author included if they are one, records the decision by commenting /approve-spec <full head SHA> on this pull request.
Required changes:
packages/core/src/utils/pickDataAttributes.tsis a new internal shared module, imported by Field, InfoTip, MoreMenu, PowerSearch and Toast, that no current record names, so it needs an owner API decision in a spec that says why existing modules are not enough.- The changeset says the new test renders every exported component, but the test skips ten exports (the providers, HoverCard, Popover, Tooltip and SelectorOption), so narrow that sentence to components that render an element of their own, or drop it.
- The MoreMenu record files the trigger-only placement under "no focused test yet" and credits the conformance test, which only checks that the attribute is somewhere in the document, so cite the new
MoreMenu.test.tsxcase in the FR1, FR4 verification row instead.
CI has not run on this draft yet.
Claims and files checked
Claims:
- The seven listed exports dropped
data-*(MoreMenu and PowerSearch kept onlydata-testid): verified, since none collected a rest of props before this change. - Only
data-*entries pass, and ids, roles, ARIA and handlers stay component-owned: verified, since the helper filters on thedata-prefix and each spread comes before the component's own attributes. - Each placement (MoreMenu trigger, InfoTip button, PowerSearch combobox or sheet trigger, token, editor root, toast element, clear button): verified in code, MoreMenu's in both presentations.
- The helper is not exported from any package path: verified.
- No props type changes and no new public API: verified for exported types. One internal prop is added to the unexported edit-popover props.
- Docs and records say where the attributes land: verified.
- The conformance test fails on the base for exactly these seven and passes here, and the touched suites pass: not verified, because the tests were not run.
- The conformance test fails when an allow-list or fixture entry names a missing export, and for a new export without passthrough: verified by reading the test.
- Focused tests pin each placement and InfoTip's own name: verified.
- Changeset, placements: verified. Changeset, "renders every exported component": false (ten exports skipped).
- Rubric, "the new verification text names test files and the facts they check": false for the MoreMenu record.
- The PowerSearch input-fields gap stays open for
ref,id,aria-*and handlers: verified.
Files:
.changeset/moremenu-infotip-powersearch-with-its-powersearc-m2zb.md: finding (coverage sentence).docs/specs/components/InfoTip/InfoTip.spec.md: awaiting spec approval.docs/specs/components/MoreMenu/MoreMenu.spec.md: awaiting spec approval; finding (verification note).docs/specs/components/PowerSearch/PowerSearch.spec.md: awaiting spec approval.packages/core/src/utils/pickDataAttributes.ts: finding (unrecorded internal module).packages/core/src/Field/InputClearButton.tsx,InfoTip/InfoTip.tsx,MoreMenu/MoreMenu.tsx,PowerSearch/PowerSearch.tsx,PowerSearch/PowerSearchEditPopover.tsx,PowerSearch/PowerSearchFilterEditor.tsx,PowerSearch/PowerSearchToken.tsx,Toast/Toast.tsx: clear.InfoTip/InfoTip.doc.mjs,MoreMenu/MoreMenu.doc.mjs,PowerSearch/PowerSearch.doc.mjs,Toast/Toast.doc.mjs: clear.InfoTip/InfoTip.test.tsx,MoreMenu/MoreMenu.test.tsx,PowerSearch/PowerSearchBottomSheet.test.tsx,__tests__/hostDataAttributes.test.tsx: clear (not run).
Move pickDataAttributes into utils/themeProps.ts beside the existing ThemeDataAttributes type, so no new shared module is added. Narrow the changeset to components that render an element of their own. Cite the focused MoreMenu and PowerSearch placement tests in their records.
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the record edits; the code, tests and docs need no further changes, and the three earlier findings are fixed.
Spec decision needed: this pull request rewords current requirements in the MoreMenu (FR4), InfoTip (FR3) and PowerSearch component records to say which element receives caller data-* attributes: MoreMenu's trigger button rather than its menu, InfoTip's button, and PowerSearch's primary control plus the token and editor roots of its defaults. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, or says which element should own the attributes instead; the author may do so if they are an engineering owner.
CI's test jobs have not run on this head yet because the CI queue was full.
Claims and files checked
Claims:
- The seven listed exports dropped
data-*before this change (MoreMenu and PowerSearch kept onlydata-testid): verified, since none collected its remaining props. - Only
data-*entries pass, and ids, roles, ARIA and handlers stay component-owned: verified, since the helper filters on thedata-prefix and each spread comes before the component's own attributes. - Each placement (MoreMenu trigger in both presentations, InfoTip button, PowerSearch combobox or sheet trigger, token, editor root, toast element, clear button): verified in code.
- Most components already pass host attributes to their own element: verified in the existing component docs.
- The PowerSearch record already routed
data-testidto the primary control and listed the otherdata-*attributes as a gap: verified. - The helper sits beside the existing theme data-attribute type, adds no shared module, and is not exported from any package path: verified.
- No props type changes and no new public API: verified for exported types; one internal prop is added to the unexported edit-popover props.
- Docs and records say where the attributes land: verified.
- The conformance test fails on the base for exactly these seven and passes here, and the touched suites pass: not verified, because no test ran at this head.
- The conformance test fails for a stale allow-list or fixture entry and for a new export without passthrough: verified by reading the test.
- Focused tests pin each placement and InfoTip's own name, and the three records cite them: verified.
- Changeset, the seven components, their placements, and a test over every export that renders an element of its own: verified.
- Rubric, the new verification cells name the focused cases and the facts they check: verified.
- The PowerSearch input-field gap stays open for
ref,id,aria-*and handlers: verified.
Files:
.changeset/moremenu-infotip-powersearch-with-its-powersearc-m2zb.md: clear.docs/specs/components/InfoTip/InfoTip.spec.md,docs/specs/components/MoreMenu/MoreMenu.spec.md,docs/specs/components/PowerSearch/PowerSearch.spec.md: awaiting spec approval.packages/core/src/utils/themeProps.ts: clear.packages/core/src/Field/InputClearButton.tsx,InfoTip/InfoTip.tsx,MoreMenu/MoreMenu.tsx,PowerSearch/PowerSearch.tsx,PowerSearch/PowerSearchEditPopover.tsx,PowerSearch/PowerSearchFilterEditor.tsx,PowerSearch/PowerSearchToken.tsx,Toast/Toast.tsx: clear.InfoTip/InfoTip.doc.mjs,MoreMenu/MoreMenu.doc.mjs,PowerSearch/PowerSearch.doc.mjs,Toast/Toast.doc.mjs: clear.InfoTip/InfoTip.test.tsx,PowerSearch/PowerSearchBottomSheet.test.tsx,__tests__/hostDataAttributes.test.tsx: clear (not run).MoreMenu/MoreMenu.test.tsx: clear (not run); an optional bottom-sheet case is suggested inline.
There was a problem hiding this comment.
Approved pending CI: some CI test legs have not finished on this head yet.
MoreMenu, InfoTip, PowerSearch (with PowerSearchToken and PowerSearchFilterEditor), Toast and InputClearButton now pass a caller's data-* attributes to the element each one owns. The focused tests pin each element, the conformance test covers every export that renders its own element, and an engineering owner has approved the record edits for this head.
- Optional: a caller
data-variantordata-sizeon MoreMenu, InputClearButton or PowerSearchToken replaces the composed Button's or Token's own reflected value, because those parts spread caller props after their theme attributes. The changeset's "Component-owned attributes stay with the component" could say "names, roles, ARIA and handlers stay with the component".
Claims and files checked
- Claim: the seven exports dropped caller
data-*on the base: verified (each destructured its props with no rest; MoreMenu and PowerSearch kept onlydata-testid). - Claim: each now passes them to its trigger button, primary control, token, editor root, toast element or button: verified (
MoreMenu.tsx:177,InfoTip.tsx:198,PowerSearch.tsx:1572and:1679,PowerSearchToken.tsx:82,PowerSearchEditPopover.tsx:884and:949,Toast.tsx:401,InputClearButton.tsx:130, and the focused tests). - Claim: component-owned attributes stay with the component: verified for names, roles, ARIA, ids, handlers and Toast's theme attributes; not for the composed Button's and Token's reflected theme values (optional note above).
- Claim: the new test renders every export that renders its own element and fails when the attribute is missing or an allow-list or fixture entry is stale: verified (
hostDataAttributes.test.tsx:397-425). - Claim: the conformance test fails on the base for exactly these seven and passes with 193 cases here: 193 passing verified in CI; the base failures verified from the base source.
- Claim: the helper lives beside
ThemeDataAttributes, returns it, and no package path exports it: verified (utils/themeProps.ts:21,utils/index.ts:81). - Claim: no props type, default, public API or visual change: verified (CI's API analysis lists no rows; visual regression shows 10 of 10 shots unchanged).
- Claim: the docs and records say where the attributes land and cite the focused cases: verified (four docs, three records; the InfoTip row names the file and the fact rather than the case title).
- Claim: the touched suites, typecheck and lint pass: verified in CI for typecheck, lint and the touched test files; the description's whole-suite count was not reproduced.
- Claim: the records add no narration, project status or change references: verified.
- Files:
.changeset/moremenu-infotip-powersearch-with-its-powersearc-m2zb.md(note above),InfoTip.spec.md,MoreMenu.spec.md,PowerSearch.spec.md,Field/InputClearButton.tsx(note above),InfoTip.doc.mjs,InfoTip.test.tsx,InfoTip.tsx,MoreMenu.doc.mjs,MoreMenu.test.tsx,MoreMenu.tsx(note above),PowerSearch.doc.mjs,PowerSearch.tsx,PowerSearchBottomSheet.test.tsx,PowerSearchEditPopover.tsx,PowerSearchFilterEditor.tsx,PowerSearchToken.tsx(note above),Toast.doc.mjs,Toast.tsx,__tests__/hostDataAttributes.test.tsx,utils/themeProps.ts: clear unless noted.
| '@astryxdesign/core': patch | ||
| --- | ||
|
|
||
| [fix] MoreMenu, InfoTip, PowerSearch (with its PowerSearchToken and PowerSearchFilterEditor defaults), Toast, and InputClearButton now pass host `data-*` attributes to their own element, as other components do: the trigger button for MoreMenu and InfoTip, the primary control for PowerSearch, the token and editor root for the PowerSearch defaults, the toast element for Toast, and the button for InputClearButton. Component-owned attributes stay with the component. A new test renders every exported component that renders an element of its own with a `data-*` attribute, and fails when the attribute does not reach the DOM. |
There was a problem hiding this comment.
Optional: MoreMenu and InputClearButton hand caller data-* to Button, and PowerSearchToken to Token, and both spread caller props after their own theme attributes. So a caller data-variant or data-size replaces the reflected value (<MoreMenu data-variant="primary" /> renders a ghost trigger marked data-variant="primary"). Consider "Names, roles, ARIA, and handlers stay with the component" here.
User impact
Tools and tests tag rendered elements with
data-*attributes: test selectors, analytics hooks, and editors that find a JSX element's DOM node again by an attribute they added. Most components already pass host attributes to their own element ("Host attributes and DOM handlers (id, data-, aria-) reach the root element"). Seven exported components dropped them silently, so a tag on them never reached the DOM and the element could not be found:MoreMenuandInfoTip(both take only their named props;MoreMenupassed onlydata-testid,InfoTipnothing)PowerSearch(onlydata-testid), and itscomponents.Token/components.EditordefaultsPowerSearchTokenandPowerSearchFilterEditorToastandInputClearButtonProblem and solution fit
The fix collects the remaining props and passes only their
data-*entries to the element the component owns. Ids, roles, ARIA, and handlers stay component-owned, so no component gains a new way to break its own semantics.Expected behavior and authority
family:input-fieldsFR10 item 1:data-*attributes (includingdata-testid) reach the primary semantic control.component:PowerSearchalready routeddata-testidthere and recorded the otherdata-*attributes as a known gap against FR10. This change closes thedata-*part of that gap;ref,id,aria-*, and handlers keep the record's current placement.Where each component puts the attributes:
MoreMenuid, and disclosure attributes stay owned.InfoTiparia-describedby,aria-expanded, andaria-controlsstay owned.PowerSearchdata-testidalready did: the combobox input (popover presentation), the trigger button (sheet presentation).PowerSearchTokenPowerSearchFilterEditorToastInputClearButtonSmallest restoration
pickDataAttributes, filters a rest object to itsdata-*keys. It lives inutils/themeProps.tsbeside the existingThemeDataAttributestype and returns that type, so no new shared module is added. It is not exported from any package path.MoreMenu,InfoTip,PowerSearch,Toast) and the component records (MoreMenuFR4,InfoTipFR3,PowerSearchpresentation and FR10 gap text) say where the attributes land.Evidence
mainfails for exactly these seven components (7 failed | 186 passed).193 passed.data-testidplacement tests for PowerSearch pass unchanged.packages/core/src/__tests__/hostDataAttributes.test.tsxrenders every exported component (contexts excluded) with adata-*attribute and fails when it does not reach the DOM. Components that need props, a parent, or an open state have a fixture; components with no element of their own are in a commented allow-list (providers, the trigger-wrapping layersHoverCard,Popover,Tooltip, andSelectorOption, which Selector renders). The test also fails when an allow-list or fixture entry names a component that is no longer exported, and any new export without passthrough fails it. Focused cases inMoreMenu.test.tsx,InfoTip.test.tsx, andPowerSearchBottomSheet.test.tsxpin the element each attribute lands on, and thatInfoTipkeeps its own name; the MoreMenu, InfoTip, and PowerSearch records cite these focused cases.Scope
Components: MoreMenu, InfoTip, PowerSearch, PowerSearchToken, PowerSearchFilterEditor, Toast, InputClearButton
Testing
pnpm exec vitest run packages/core/src/__tests__/hostDataAttributes.test.tsx(fails onmain, passes here)pnpm exec vitest run packages/core/src/{MoreMenu,InfoTip,PowerSearch,Toast,Field,DropdownMenu,Tokenizer}pnpm exec vitest run packages/core: all pass except five date/time-locale and postinstall tests that fail identically onmainin my local environment (ICU locale data and repository-root detection), unrelated to this changetsc --noEmit -p packages/core/tsconfig.jsonASTRYX_STRICT_LINT=1 pnpm exec eslinton the changed files (no new findings)pnpm check:repo,pnpm check:knowledgeNo layout, focus, or pixel behaviour changes, so no real-browser states are attached.
Writing rubric results
Records changed:
component:MoreMenu(FR4 and its FR1, FR4 verification row),component:InfoTip(FR3 and its verification row),component:PowerSearch(presentation paragraph, governing-rule note, FR10 known-gap item 1, and a hostdata-*placement verification row).ref,id,aria-*, and handlers.