Repository navigation
fix(DropdownMenu, Popover): the forced-colors edge sits inside the surface, so a capped menu keeps its gutter - #13690
Conversation
… inset outline, so capped layers keep their gutter
|
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 |
|---|---|---|---|
| TabMenu | 85.5 kB (+238 B) · 12.4 kB CSS (+105 B) | — | — · — · — |
| TopNavMegaMenu | 82.7 kB (+209 B) · 13.2 kB CSS (+115 B) | — | — · — · — |
| Popover · Storybook | 106.5 kB (+217 B) · 15.7 kB CSS (+106 B) | 1,924 (+67) | — · ✓ · — |
217 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| SideNavHeading | 89.2 kB (+216 B) · 12.6 kB CSS (+103 B) | — | — · — · — |
| TopNavMenu | 88.4 kB (+217 B) · 12.5 kB CSS (+100 B) | — | — · — · — |
| SideNavItem | 83.5 kB (+212 B) · 12.4 kB CSS (+103 B) | — | — · — · — |
| TopNavHeading | 88.9 kB (+208 B) · 12.5 kB CSS (+103 B) | — | — · — · — |
| DateInput | 210.3 kB (+242 B) · 19.0 kB CSS (+55 B) | — | — · — · — |
| DateRangeInput | 107.4 kB (+247 B) · 14.3 kB CSS (+50 B) | — | — · — · — |
| ComplexSelector | 84.7 kB (+222 B) · 13.3 kB CSS (+74 B) | — | — · — · — |
| TableCell | 108.8 kB (+211 B) · 20.3 kB CSS (+73 B) | — | — · — · — |
| DateTimeInput | 234.5 kB (+229 B) · 20.7 kB CSS (+53 B) | — | — · — · — |
| BaseTypeahead | 84.9 kB (+195 B) · 12.2 kB CSS (+86 B) | — | — · — · — |
| MoreMenu | 134.3 kB (+221 B) · 19.9 kB CSS (+59 B) | — | — · — · — |
| DropdownMenuSubMenu | 81.7 kB (+164 B) · 11.1 kB CSS (+113 B) | — | — · ✓ · — |
| ChatComposer | 91.6 kB (+203 B) · 13.6 kB CSS (+73 B) | — | — · — · — |
| DropdownMenu | 134.1 kB (+213 B) · 19.9 kB CSS (+59 B) | — | — · ✓ · — |
| Markdown | 211.6 kB (+216 B) · 23.6 kB CSS (+56 B) | — | — · — · — |
| MultiSelector | 110.4 kB (+209 B) · 19.0 kB CSS (+59 B) | — | — · — · — |
| PowerSearch | 321.4 kB (+215 B) · 27.4 kB CSS (+50 B) | — | — · — · — |
| TableHeaderCell | 108.7 kB (+208 B) · 20.1 kB CSS (+56 B) | — | — · — · — |
| BreadcrumbItem | 103.8 kB (+165 B) · 14.1 kB CSS (+94 B) | — | — · — · — |
| ContextMenu · Storybook | 107.6 kB (+193 B) · 19.7 kB CSS (+62 B) | 747 (−11) | — · ✓ · — |
| Table | 127.0 kB (+189 B) · 21.3 kB CSS (+58 B) | — | — · — · — |
| ChatComposerTokenElement | 88.6 kB (+190 B) · 12.6 kB CSS (+56 B) | — | — · — · — |
| ChatComposerInput | 88.6 kB (+189 B) · 12.6 kB CSS (+56 B) | — | — · — · — |
| Selector | 122.5 kB (+169 B) · 19.8 kB CSS (+73 B) | — | — · — · — |
| Typeahead | 95.8 kB (+200 B) · 14.5 kB CSS (+41 B) | — | — · — · — |
| Tokenizer | 113.8 kB (+172 B) · 22.0 kB CSS (+50 B) | — | — · — · — |
| Pagination | 155.5 kB (+168 B) · 20.1 kB CSS (+51 B) | — | — · — · — |
| lab/CommentComposer | 188.2 kB (+217 B) · 1.9 kB CSS (0) | — | — · — · — |
| lab/CommentThread | 384.7 kB (+211 B) · 2.4 kB CSS (0) | — | — · — · — |
| lab/MediaTime | 230.2 kB (+210 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/VideoPlayer | 237.6 kB (+210 B) · 2.1 kB CSS (0) | — | — · — · — |
| lab/MediaCaptionsButton | 230.2 kB (+209 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaFullscreenButton | 230.3 kB (+209 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaPlaybackRate | 230.2 kB (+209 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaPlayButton | 230.3 kB (+209 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaSeekButton | 230.2 kB (+209 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaVolume | 230.2 kB (+209 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaTimeSlider | 230.2 kB (+207 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/AudioPlayer | 240.0 kB (+204 B) · 1.8 kB CSS (0) | — | — · — · — |
| lab/Comments | 391.7 kB (+203 B) · 2.5 kB CSS (0) | — | — · — · — |
| lab/ChatReactionBar | 131.0 kB (+180 B) · 1.1 kB CSS (0) | — | — · — · — |
| lab/ChatEmojiPicker | 129.8 kB (+173 B) · 773 B CSS (0) | — | — · — · — |
| lab/TransferListSelector | 152.7 kB (+169 B) · 1.4 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditorToolbar | 317.9 kB (+164 B) · 454 B CSS (0) | — | — · — · — |
| charts/Chart | 252.6 kB (0) · 516 B CSS (0) | — | — · — · — |
| charts/ChartAxis | 7.1 kB (0) · 112 B CSS (0) | — | — · — · — |
| charts/ChartLegend | 42.2 kB (0) · 224 B CSS (0) | — | — · — · — |
| charts/ChartTooltip | 229.1 kB (0) · 451 B CSS (0) | — | — · — · — |
| AlertDialog | 134.7 kB (0) · 16.3 kB CSS (0) | — | — · — · — |
| AppShell | 92.2 kB (0) · 14.9 kB CSS (0) | — | — · — · — |
| AspectRatio | 4.1 kB (0) · 3.6 kB CSS (0) | — | — · — · — |
| Avatar | 47.0 kB (0) · 6.0 kB CSS (0) | — | — · — · — |
| AvatarGroup | 49.8 kB (0) · 6.1 kB CSS (0) | — | — · — · — |
| AvatarGroupOverflow | 53.1 kB (0) · 6.0 kB CSS (0) | — | — · — · — |
| AvatarStatusDot | 7.8 kB (0) · 3.6 kB CSS (0) | — | — · — · — |
| Badge | 7.4 kB (0) · 4.1 kB CSS (0) | — | — · — · — |
| Banner | 70.1 kB (0) · 11.7 kB CSS (0) | — | — · — · — |
| Blockquote | 3.9 kB (0) · 3.5 kB CSS (0) | — | — · — · — |
| BottomSheet | 77.1 kB (0) · 7.8 kB CSS (0) | — | — · — · — |
| BottomSheetSwitcher | 19.6 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| Breadcrumbs | 16.7 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| Button | 68.0 kB (0) · 11.2 kB CSS (0) | — | — · — · — |
| ButtonGroup | 45.2 kB (0) · 3.7 kB CSS (0) | — | — · — · — |
| Calendar | 79.2 kB (0) · 11.8 kB CSS (0) | — | — · — · — |
| Card | 10.5 kB (0) · 7.0 kB CSS (0) | — | — · — · — |
| Carousel | 78.4 kB (0) · 12.1 kB CSS (0) | — | — · — · — |
| Center | 4.5 kB (0) · 4.6 kB CSS (0) | — | — · — · — |
| ChatComposerDrawer | 18.6 kB (0) · 4.8 kB CSS (0) | — | — · — · — |
| ChatDictationButton | 68.6 kB (0) · 11.2 kB CSS (0) | — | — · — · — |
| ChatLayout | 91.8 kB (0) · 11.7 kB CSS (0) | — | — · — · — |
| ChatLayoutScrollButton | 68.6 kB (0) · 11.4 kB CSS (0) | — | — · — · — |
| ChatMessage | 17.4 kB (0) · 3.7 kB CSS (0) | — | — · — · — |
| ChatMessageBubble | 7.7 kB (0) · 3.8 kB CSS (0) | — | — · — · — |
| ChatMessageList | 28.7 kB (0) · 7.4 kB CSS (0) | — | — · — · — |
| ChatMessageMetadata | 21.0 kB (0) · 4.2 kB CSS (0) | — | — · — · — |
| ChatSendButton | 68.4 kB (0) · 11.2 kB CSS (0) | — | — · — · — |
| ChatSystemMessage | 7.2 kB (0) · 3.8 kB CSS (0) | — | — · — · — |
| ChatTokenizedText | 7.8 kB (0) · 4.1 kB CSS (0) | — | — · — · — |
| ChatToolCalls | 33.2 kB (0) · 8.8 kB CSS (0) | — | — · — · — |
| CheckboxInput | 71.9 kB (0) · 10.7 kB CSS (0) | — | — · — · — |
| CheckboxList | 75.8 kB (0) · 8.2 kB CSS (0) | — | — · — · — |
| CheckboxListItem | 83.4 kB (0) · 12.6 kB CSS (0) | — | — · — · — |
| Citation | 21.3 kB (0) · 4.5 kB CSS (0) | — | — · — · — |
| ClickableCard | 19.5 kB (0) · 7.9 kB CSS (0) | — | — · — · — |
| Code | 3.9 kB (0) · 3.5 kB CSS (0) | — | — · — · — |
| CodeBlock | 84.1 kB (0) · 12.9 kB CSS (0) | — | — · — · — |
| Collapsible | 30.1 kB (0) · 4.5 kB CSS (0) | — | — · — · — |
| CollapsibleGroup | 7.1 kB (0) · 3.3 kB CSS (0) | — | — · — · — |
| CommandPalette | 84.3 kB (0) · 13.5 kB CSS (0) | — | — · — · — |
| CommandPaletteEmpty | 6.6 kB (0) · 3.5 kB CSS (0) | — | — · — · — |
| CommandPaletteFooter | 17.7 kB (0) · 3.7 kB CSS (0) | — | — · — · — |
| CommandPaletteGroup | 3.8 kB (0) · 3.5 kB CSS (0) | — | — · — · — |
| CommandPaletteInput | 34.3 kB (0) · 7.9 kB CSS (0) | — | — · — · — |
| CommandPaletteItem | 13.8 kB (0) · 3.6 kB CSS (0) | — | — · — · — |
| CommandPaletteList | 16.6 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| ContextMenuItem | 39.8 kB (0) · 7.3 kB CSS (0) | — | — · — · — |
| Dialog | 29.0 kB (0) · 7.3 kB CSS (0) | — | — · — · — |
| DialogHeader | 71.3 kB (0) · 12.9 kB CSS (0) | — | — · — · — |
| Drawer | 58.7 kB (0) · 8.7 kB CSS (0) | — | — · — · — |
| DrawerHeader | 71.4 kB (0) · 14.3 kB CSS (0) | — | — · — · — |
| DropdownMenuCheckboxItem | 30.2 kB (0) · 7.6 kB CSS (0) | — | — · — · — |
| DropdownMenuDivider | 5.4 kB (0) · 548 B CSS (0) | — | — · ✓ · — |
| DropdownMenuGroup | 6.6 kB (0) · 3.4 kB CSS (0) | — | — · ✓ · — |
| DropdownMenuItem | 29.4 kB (0) · 7.1 kB CSS (0) | — | — · ✓ · — |
| DropdownMenuRadioGroup | 6.7 kB (0) · 3.4 kB CSS (0) | — | — · ✓ · — |
| DropdownMenuRadioItem | 30.3 kB (0) · 7.6 kB CSS (0) | — | — · ✓ · — |
| Field | 61.8 kB (0) · 7.7 kB CSS (0) | — | — · — · — |
| FieldLabel | 57.4 kB (0) · 6.1 kB CSS (0) | — | — · — · — |
| FileInput | 78.0 kB (0) · 12.9 kB CSS (0) | — | — · — · — |
| FormLayout | 7.0 kB (0) · 3.5 kB CSS (0) | — | — · — · — |
| Grid | 4.7 kB (0) · 3.8 kB CSS (0) | — | — · — · — |
| GridSpan | 3.8 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| Heading | 12.5 kB (0) · 5.8 kB CSS (0) | — | — · — · — |
| HoverCard | 31.1 kB (0) · 4.8 kB CSS (0) | — | — · — · — |
| IconButton | 68.1 kB (0) · 11.2 kB CSS (0) | — | — · — · — |
| InfoTip | 52.0 kB (0) · 5.7 kB CSS (0) | — | — · — · — |
| InputGroup | 64.0 kB (0) · 8.9 kB CSS (0) | — | — · — · — |
| InputGroupText | 7.1 kB (0) · 3.9 kB CSS (0) | — | — · — · — |
| Item | 21.5 kB (0) · 6.2 kB CSS (0) | — | — · — · — |
| Kbd | 17.4 kB (0) · 3.6 kB CSS (0) | — | — · — · — |
| LayoutPanel | 22.4 kB (0) · 5.1 kB CSS (0) | — | — · — · — |
| Lightbox | 151.8 kB (0) · 12.3 kB CSS (0) | — | — · — · — |
| Link | 58.2 kB (0) · 7.4 kB CSS (0) | — | — · — · — |
| ListItem | 82.5 kB (0) · 12.6 kB CSS (0) | — | — · — · — |
| MetadataList | 17.5 kB (0) · 3.8 kB CSS (0) | — | — · — · — |
| MetadataListItem | 7.2 kB (0) · 3.6 kB CSS (0) | — | — · — · — |
| MobileNav | 80.4 kB (0) · 11.8 kB CSS (0) | — | — · — · — |
| MobileNavToggle | 69.7 kB (0) · 11.8 kB CSS (0) | — | — · — · — |
| NavHeadingMenu | 19.2 kB (0) · 3.5 kB CSS (0) | — | — · — · — |
| NavHeadingMenuItem | 19.5 kB (0) · 6.7 kB CSS (0) | — | — · — · — |
| NavIcon | 3.8 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| NumberInput | 106.8 kB (0) · 13.1 kB CSS (0) | — | — · — · — |
| Outline | 27.2 kB (0) · 4.3 kB CSS (0) | — | — · — · — |
| OverflowList | 12.7 kB (0) · 3.7 kB CSS (0) | — | — · — · — |
| Overlay | 24.1 kB (0) · 4.1 kB CSS (0) | — | — · — · — |
| ProgressBar | 12.5 kB (0) · 6.7 kB CSS (0) | — | — · — · — |
| RadioList | 63.3 kB (0) · 7.7 kB CSS (0) | — | — · — · — |
| RadioListItem | 79.5 kB (0) · 11.2 kB CSS (0) | — | — · — · — |
| ResizeHandle | 22.4 kB (0) · 4.3 kB CSS (0) | — | — · — · — |
| ScrollableArea | 11.6 kB (0) · 4.4 kB CSS (0) | — | — · — · — |
| Section | 8.0 kB (0) · 6.4 kB CSS (0) | — | — · — · — |
| SegmentedControl | 103.9 kB (0) · 7.2 kB CSS (0) | — | — · — · — |
| SegmentedControlItem | 19.8 kB (0) · 4.4 kB CSS (0) | — | — · — · — |
| SelectableCard | 19.7 kB (0) · 8.1 kB CSS (0) | — | — · — · — |
| SelectorOption | 25.4 kB (0) · 6.8 kB CSS (0) | — | — · — · — |
| SideNav | 116.3 kB (0) · 12.6 kB CSS (0) | — | — · — · — |
| SideNavCollapseButton | 68.9 kB (0) · 11.2 kB CSS (0) | — | — · — · — |
| SideNavSection | 7.2 kB (0) · 3.7 kB CSS (0) | — | — · — · — |
| Skeleton | 4.1 kB (0) · 3.8 kB CSS (0) | — | — · — · — |
| Slider | 117.4 kB (0) · 9.3 kB CSS (0) | — | — · — · — |
| Spinner | 25.3 kB (0) · 6.6 kB CSS (0) | — | — · — · — |
| StatusDot | 34.8 kB (0) · 5.7 kB CSS (0) | — | — · — · — |
| Step | 32.4 kB (0) · 5.7 kB CSS (0) | — | — · — · — |
| Stepper | 69.8 kB (0) · 11.3 kB CSS (0) | — | — · — · — |
| Switch | 112.1 kB (0) · 10.5 kB CSS (0) | — | — · — · — |
| Tab | 15.3 kB (0) · 4.3 kB CSS (0) | — | — · — · — |
| TableBody | 6.8 kB (0) · 3.3 kB CSS (0) | — | — · — · — |
| TableFooter | 3.6 kB (0) · 3.3 kB CSS (0) | — | — · — · — |
| TableHeader | 3.6 kB (0) · 3.3 kB CSS (0) | — | — · — · — |
| TableRow | 7.3 kB (0) · 4.1 kB CSS (0) | — | — · — · — |
| TableSelectionToolbar | 78.5 kB (0) · 14.6 kB CSS (0) | — | — · — · — |
| TabList | 48.5 kB (0) · 6.8 kB CSS (0) | — | — · — · — |
| Text | 11.7 kB (0) · 5.8 kB CSS (0) | — | — · — · — |
| TextArea | 95.4 kB (0) · 10.0 kB CSS (0) | — | — · — · — |
| TextInput | 101.9 kB (0) · 12.9 kB CSS (0) | — | — · — · — |
| Thumbnail | 72.4 kB (0) · 12.7 kB CSS (0) | — | — · — · — |
| TimeInput | 182.4 kB (0) · 17.9 kB CSS (0) | — | — · — · — |
| Timer | 14.1 kB (0) · 6.4 kB CSS (0) | — | — · — · — |
| Timestamp | 28.0 kB (0) · 11.4 kB CSS (0) | — | — · — · — |
| Toast | 108.0 kB (0) · 11.5 kB CSS (0) | — | — · — · — |
| ToggleButton | 95.5 kB (0) · 11.3 kB CSS (0) | — | — · — · — |
| ToggleButtonGroup | 42.4 kB (0) · 3.7 kB CSS (0) | — | — · — · — |
| Token | 30.4 kB (0) · 5.0 kB CSS (0) | — | — · — · — |
| Toolbar | 48.4 kB (0) · 8.6 kB CSS (0) | — | — · — · — |
| Tooltip | 33.1 kB (0) · 4.8 kB CSS (0) | — | — · — · — |
| TopNav | 71.6 kB (0) · 12.1 kB CSS (0) | — | — · — · — |
| TopNavItem | 14.9 kB (0) · 4.0 kB CSS (0) | — | — · — · — |
| TopNavMegaMenuFeaturedCard | 8.6 kB (0) · 3.6 kB CSS (0) | — | — · — · — |
| TopNavMegaMenuItem | 15.5 kB (0) · 4.2 kB CSS (0) | — | — · — · — |
| TreeList | 47.8 kB (0) · 6.0 kB CSS (0) | — | — · — · — |
| TypeaheadItem | 6.7 kB (0) · 3.6 kB CSS (0) | — | — · — · — |
| lab/ChartDotGL | 7.6 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/ChartDotGLInteractive | 8.6 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/ChartHeatmapGL | 8.8 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/ChartStreamGL | 7.7 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/ChatReasoning | 7.4 kB (0) · 967 B CSS (0) | — | — · — · — |
| lab/ChatTypingIndicator | 26.6 kB (0) · 612 B CSS (0) | — | — · — · — |
| lab/ChatUnreadDivider | 3.9 kB (0) · 348 B CSS (0) | — | — · — · — |
| lab/ChatVirtualizer | 58.0 kB (0) · 223 B CSS (0) | — | — · — · — |
| lab/CircleCheckIndicator | 4.7 kB (0) · 1.0 kB CSS (0) | — | — · — · — |
| lab/CircularProgress | 9.1 kB (0) · 859 B CSS (0) | — | — · — · — |
| lab/CodeEditor | 14.7 kB (0) · 743 B CSS (0) | — | — · — · — |
| lab/CommentPin | 61.9 kB (0) · 1.2 kB CSS (0) | — | — · — · — |
| lab/DialogHeroHeader | 92.6 kB (0) · 372 B CSS (0) | — | — · — · — |
| lab/DiffViewer | 96.1 kB (0) · 2.1 kB CSS (0) | — | — · — · — |
| lab/EmojiPicker | 121.5 kB (0) · 751 B CSS (0) | — | — · — · — |
| lab/LineClamp | 14.2 kB (0) · 168 B CSS (0) | — | — · — · — |
| lab/ListInput | 97.7 kB (0) · 922 B CSS (0) | — | — · — · — |
| lab/LogStream | 8.4 kB (0) · 1.6 kB CSS (0) | — | — · — · — |
| lab/MediaPlayer | 31.3 kB (0) · 165 B CSS (0) | — | — · — · — |
| lab/MediaPlayerElement | 7.0 kB (0) · 177 B CSS (0) | — | — · — · — |
| lab/NavigationScreen | 86.8 kB (0) · 1.5 kB CSS (0) | — | — · — · — |
| lab/NavigationStack | 86.8 kB (0) · 1.5 kB CSS (0) | — | — · — · — |
| lab/PageControl | 79.3 kB (0) · 709 B CSS (0) | — | — · — · — |
| lab/Schedule | 119.7 kB (0) · 3.9 kB CSS (0) | — | — · — · — |
| lab/SelectableCardGroup | 72.2 kB (0) · 162 B CSS (0) | — | — · — · — |
| lab/Stat | 4.4 kB (0) · 646 B CSS (0) | — | — · — · — |
| lab/SVGIcon | 8.1 kB (0) · 765 B CSS (0) | — | — · — · — |
| lab/TabBar | 84.8 kB (0) · 1.8 kB CSS (0) | — | — · — · — |
| lab/TabBarItem | 3.9 kB (0) · 1.8 kB CSS (0) | — | — · — · — |
| lab/TabBarMoreList | 105.8 kB (0) · 1.8 kB CSS (0) | — | — · — · — |
| lab/ThreeDScatterGL | 7.9 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/TourStep | 97.4 kB (0) · 691 B CSS (0) | — | — · — · — |
| lab/TransferList | 140.5 kB (0) · 1.2 kB CSS (0) | — | — · — · — |
| lab/WeightedSVGIcon | 5.2 kB (0) · 1.1 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditor | 311.5 kB (0) · 2.7 kB CSS (0) | — | — · — · — |
| richtext/RichTextView | 288.2 kB (0) · 2.4 kB CSS (0) | — | — · — · — |
Package size: @astryxdesign/core 8.01 MB packed (+1.7 kB); no new dependencies.
Wide change (shared styles: packages/core/src/utils/focusOutline.stylex.ts): add ci:run-visual for Visual, ci:run-rtl for RTL.
Generated by PR Enrichment workflow | View full report
|
/approve-spec 2b24032 |
There was a problem hiding this comment.
Changes requested. The record change is owner-approved, but two blocking issues remain.
- A dialog Popover surface focused by keyboard loses the shared focus ring: the new
outline*longhands onusePopover's surface (usePopover.tsx:123-138) are merged after the ring (:996-1001) and replace its:focus-visiblevalues, so in forced colors focus on that surface is not visible at all (Popover AR3). - The changeset and title say ContextMenu (and Popover) menus move from a 14 px to a 16 px gutter, but those surfaces are
border-boxwith their own cap and already kept 16 px, so name DropdownMenu's root popover surface as the fix and say the other surfaces draw the same edge without a size change.
To fix the first, keep the ring's :focus-visible values in the surface's outline properties (or draw the inset edge on a pseudo-element), and add a test that a keyboard-focused dialog surface keeps the ring with forced colors on and off; the new outline filter in usePopover.forcedColorsEdge.test.tsx would reject that ring as written. Two smaller points: the gutter check reads the box rather than the painted outline, so asserting outline-offset in expectEdge would make it prove the edge stays inside, and the edge tests are still named for a border.
Claims and files checked
Review mode: same-head; reason: none
- Claim, changeset: the Popover, DropdownMenu and ContextMenu surfaces draw the forced-colors edge inside the box. Verified in each surface's styles.
- Claim, changeset: a capped menu keeps its 16 px gap instead of 14 px. True for DropdownMenu's root surface from the code; false for ContextMenu, whose border already sat inside its cap (blocking).
- Claim, changeset: the edge looks the same. Not verified; no forced-colors frames.
- Claim, description: before, the border pushed a capped menu's painted edge 2 px past the gutter. True for DropdownMenu's root surface, whose cap is on the layer box, not the surface.
- Claim, description: the inset outline adds no size and follows the corner radius. Size verified from the code; the corners were not checked in a browser.
- Claim, description: the edge and every surface's size are unchanged outside forced colors. Verified; the dialog surface's shared focus ring does change (blocking).
- Claim, description: Dialog and AlertDialog keep their border. Verified; untouched.
- Claim, description: the Popover record's forced-colors edge requirement and its verification row describe the inset outline and the gutter check. Verified; owner-approved at this head.
- Claim, description: the edge test reads a border or an outline and adds a capped DropdownMenu check that fails on main and passes here. Test code verified; not run, as CI did not run on the draft.
- Claim, description: the unit test asserts no outline outside forced colors. Verified; that assertion also rejects the shared focus ring.
- Claim, description: Prettier and the knowledge check are clean. Not run.
- Claim, description: forced-colors stills will follow. Not attached yet.
- File
.changeset/popover-forced-colors-edge-inside.md: ContextMenu gutter claim (blocking). - File
docs/specs/components/Popover/Popover.spec.md: owner-approved; the verification row overstates what the gutter check proves (non-blocking). - File
packages/core/src/Popover/usePopover.tsx: drops the shared focus ring on the dialog surface (blocking). - File
packages/core/src/DropdownMenu/DropdownMenuSubMenu.tsx: in forced colors the edge overrides the browser's focus ring on a focused flyout container (part of the first finding). - File
packages/core/src/ContextMenu/ContextMenu.tsx: clear. - File
packages/core/src/Popover/__tests__/OverlayEdges.forcedColors.a11y.chromium.spec.ts: the gutter check reads the box, not the outline, and the tests are named for a border (non-blocking). - File
packages/core/src/Popover/usePopover.forcedColorsEdge.test.tsx: its outline filter rejects the shared ring (part of the first finding).
…focused dialog surface keeps its ring
…he menu; the focus test expects the ring-with-edge style
…ublic focusOutline exports
|
/approve-spec 71057cf |
…g under forced colors
|
/approve-spec ba1dd26 |
… internal Popover module and keeps the focus ring on every surface
|
/approve-spec 6fcdd2c |
|
/approve-spec 4020ec8 |
There was a problem hiding this comment.
Changes requested. The forced-colors edge fix itself matches the approved FR10, and both earlier blockers are fixed: the sub-menu flyout keeps the focus ring on keyboard focus, and the public focusOutline.stylex entry gains no exports.
Blocking:
packages/core/src/Popover/surfaceEdge.stylex.tsis a new internal module imported byContextMenu.tsxandDropdownMenuSubMenu.tsxthat no current record names, so it needs an owner API decision: name it and its two styles in a record (for examplecomponent:Popover), showing its usage, why it is needed and whyutils/focusOutline.stylex.tsis not enough, and get an engineering owner's approval at the head.
Also, non-blocking: the header comment in utils/focusOutline.stylex.ts still says every ring comes from that file except Switch's (see the inline suggestion). None of the tests has run on this draft yet, since CI skipped its test jobs.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: a capped DropdownMenu keeps its full 16 px gap because its edge is drawn inside the box: verified (
usePopover.tsx:988,surfaceEdge.stylex.ts:32-64; the base surface is content-box). - Claim: Popover, ContextMenu and flyout surfaces draw the same edge and keep their size: verified (
ContextMenu.tsx:848,DropdownMenuSubMenu.tsx:1447; both border-box at:148and:198). - Claim: a focused Popover surface still shows its focus ring: verified (
surfaceEdge.stylex.ts:32-64nests the ring in the forced-colors branch). - Claim: no package export reaches the new module, and the public focus-outline entry is unchanged: verified (
packages/core/package.jsonexports;focusOutline.stylex.tschanges a comment only). - Claim: the menu-surface style sets nothing outside forced colors and shows the shared ring on keyboard focus there, so a focused empty or loading flyout keeps a ring: verified in code (
surfaceEdge.stylex.ts:71-99); its test has not run. - Claim: ring values are the shared focus-outline tokens: verified (
surfaceEdge.stylex.ts:22-25). - Claim: only DropdownMenu's root surface had the 14 px gap: verified (box sizing above).
- Claim: the focus-ring lint rule allows the new module, with its reason: verified (
focus-outline-shared.js:41-51,:115). - Claim: FR10 and its verification row describe the inset edge and the gutter check: verified (
Popover.spec.mdFR10 and verification rows). - Claim: the browser suite reads a border or an outline, requires an inset outline, checks the capped menu's gutter, and checks the focused Popover and flyout rings: verified by reading (
OverlayEdges.forcedColors.a11y.chromium.spec.ts:68-112,:198-278). - Claim: the gutter check fails on main and passes on this head: not verified (no test run was possible).
- Claim: the unit test rejects an outline edge outside forced colors, ring rules excepted: verified (
usePopover.forcedColorsEdge.test.tsx:53-75). - Claim: the Popover focus test expects the ring-with-edge style: verified (
Popover.test.tsx:1121). - Claim: the new module is internal: true, but no record names it (blocking finding).
- Claim: Prettier and the knowledge check are clean: not verified (no install was possible).
- Claim: forced-colors stills will follow: not yet provided; no current claim requires them.
- File
.changeset/popover-forced-colors-edge-inside.md: clear. - File
docs/specs/components/Popover/Popover.spec.md: clear (owner-approved at this head). - File
internal/eslint-plugin-astryx/focus-outline-shared.js: clear. - File
packages/core/src/ContextMenu/ContextMenu.tsx: clear. - File
packages/core/src/DropdownMenu/DropdownMenuSubMenu.tsx: clear. - File
packages/core/src/Popover/Popover.test.tsx: clear. - File
packages/core/src/Popover/__tests__/OverlayEdges.forcedColors.a11y.chromium.spec.ts: clear. - File
packages/core/src/Popover/surfaceEdge.stylex.ts: blocking finding (no record names it). - File
packages/core/src/Popover/usePopover.forcedColorsEdge.test.tsx: clear. - File
packages/core/src/Popover/usePopover.tsx: clear. - File
packages/core/src/utils/focusOutline.stylex.ts: non-blocking comment suggestion.
…ne header names its two exceptions
|
/approve-spec 40159a0 |
There was a problem hiding this comment.
Approved. Popover, DropdownMenu, ContextMenu and sub-menu flyout surfaces now draw their forced-colors edge as an inset outline, so a capped menu keeps its full 16 px gap from the screen edge. This matches the reworded FR10, which an engineering owner approved at this head, and the forced-colors browser tests and both unit test files passed in CI on this head.
Non-blocking: the JSDoc on surfaceEdgeProps (usePopover.tsx:112) restates the call below it; see the existing inline suggestion.
Claims and files checked
Review mode: same-head; reason: none
- Claim: a capped DropdownMenu's surface draws its 1 px forced-colors edge inside its box and keeps the full 16 px gap: verified (
usePopover.tsx:988,surfaceEdge.stylex.ts:32-65; the 220 px gutter test passed in CI). - Claim: Popover, ContextMenu and sub-menu flyout surfaces draw the edge the same way and keep their size: verified for the plain flyout and ContextMenu (
ContextMenu.tsx:848,DropdownMenuSubMenu.tsx:1447); a flyout with a header or footer draws no forced-colors edge before or after this change. - Claim: before, the border sat outside the capped box and the bottom gap fell from 16 to 14 px: consistent with main's code (a content-box surface inside the border-box layer cap); the 14 px is the issue's measurement.
- Claim: the edge is now an inset outline with offset -1px that adds no size: verified (
surfaceEdge.stylex.ts:57-64, CI's built CSS). - Claim: no edge outside forced colors, Dialog and AlertDialog keep their border, and no size changes outside forced colors: verified (the "gains no edge" and Dialog edge tests passed in CI).
- Claim: the new module is internal, no package export reaches it, and the public focus-outline entry is unchanged: verified (
packages/core/package.jsonunchanged;focusOutline.stylex.tschanges a comment only; CI's API delta is empty). - Claim: the surface style draws the shared ring at all times plus the edge under forced colors, and the menu style sets nothing outside forced colors and draws the edge, and the ring on keyboard focus, under forced colors: verified (
surfaceEdge.stylex.ts:32-65,:71-100). - Claim: a keyboard-focused empty or loading flyout keeps a visible ring: verified (the flyout ring test passed in CI).
- Claim: ring values are the shared focus-outline tokens: verified (
surfaceEdge.stylex.ts:22-25). - Claim: each surface's own forced-colors border is removed: verified (
usePopover.tsx:124-131,ContextMenu.tsx:175,DropdownMenuSubMenu.tsx:226). - Claim: the flyout and ContextMenu surfaces were already border-box with their own cap, so only DropdownMenu's root surface had the gap: verified (
ContextMenu.tsx:147-158, the flyout menu style,DropdownMenu.tsx:255-261). - Claim: the focus-ring lint rule allows the new module, with its reason: verified (
focus-outline-shared.js:40-52). - Claim: FR10 describes the inset edge, the kept gutter and ring, names the internal styles and why they stay internal, and the record lists the edge tests: verified (
Popover.spec.md:220,:408,verified_by). - Claim: the browser suite reads a border or an outline, requires an inset outline, checks a capped menu's gutter, and checks the Popover and flyout rings: verified; all 17 tests passed in CI.
- Claim: the gutter check fails on main and passes on this head: passes on this head in CI; the main half was not run and is consistent with main's code.
- Claim: the unit test rejects an outline edge outside forced colors, ring rules excepted, and the Popover focus test expects the ring-with-edge style: verified; both passed in CI.
- Claim: patch changeset, and the changeset's wording: verified.
- Claim: the change rests on the gutter and forced-colors edge requirements, with FR10's edge moving inside the box: verified; the FR10 change is owner-approved at this head.
- Claim: forced-colors stills will follow: not provided; no current requirement asks for them.
- Claim: Prettier and the knowledge check are clean: verified by CI's lint job.
- File
.changeset/popover-forced-colors-edge-inside.md: clear. - File
docs/specs/components/Popover/Popover.spec.md: clear (owner-approved at this head). - File
internal/eslint-plugin-astryx/focus-outline-shared.js: clear. - File
packages/core/src/ContextMenu/ContextMenu.tsx: clear. - File
packages/core/src/DropdownMenu/DropdownMenuSubMenu.tsx: clear. - File
packages/core/src/Popover/Popover.test.tsx: clear. - File
packages/core/src/Popover/__tests__/OverlayEdges.forcedColors.a11y.chromium.spec.ts: clear. - File
packages/core/src/Popover/surfaceEdge.stylex.ts: clear (named by the approved FR10). - File
packages/core/src/Popover/usePopover.forcedColorsEdge.test.tsx: clear. - File
packages/core/src/Popover/usePopover.tsx: non-blocking comment suggestion. - File
packages/core/src/utils/focusOutline.stylex.ts: clear.
| return false; | ||
| } | ||
|
|
||
| /** The surface's focus ring with its forced-colors edge, then `styles`. */ |
There was a problem hiding this comment.
Non-blocking: this JSDoc restates the stylex.props call below it. Drop it, or keep only the reason:
/** The edge and the ring share `outline`, so they come in one style. */
Primary intent
Bug fix: with forced colors on, a capped DropdownMenu's popover surface draws its 1 px edge inside its box, so it keeps its full 16 px gutter. Popover, ContextMenu and sub-menu flyout surfaces draw the edge the same way and keep their size.
User impact
CanvasTextborder, outside the box. A capped menu is sized to the viewport minus the 16 px gutters, so the border pushed the painted edge 2 px past the gutter. In the report, the bottom gap shrank from 16 to 14 px at a 285 px viewport.CanvasTextedge is an inset outline (outline-offset: -1px). It looks the same and follows the corner radius, but it adds no size, so the surface keeps its 16 px gutter.Change
Popover/surfaceEdge.stylex.ts(new, internal): no package export reaches it, so the public@astryxdesign/core/utils/focusOutline.stylexentry is unchanged from main. It owns the forced-colors edge, a 1 pxCanvasTextinset outline (outline-offset: -1px), next to the focus ring, because both useoutline.edgeWithFocusRing(Popover's surface) draws the shared ring at all times, plus the edge under forced colors.edgeKeepingFocus(the sub-menu flyout and ContextMenu surfaces) sets nothing outside forced colors; under forced colors it draws the edge, and the shared ring on keyboard focus. So a keyboard-focused empty or loading flyout keeps a visible ring. Ring values are the shared--focus-outline-*tokens.usePopover.tsx,DropdownMenuSubMenu.tsx,ContextMenu.tsx: each surface's own forced-colors border is removed in favour of those styles. The flyout and ContextMenu surfaces were alreadyborder-boxwith their own cap, so their gutter does not change; only DropdownMenu's root popover surface had the 14 px gap.focus-outline-sharedlint rule: the new module joins the files allowed to write a ring, with the reason (component:PopoverFR10).component:PopoverFR10): the edge is described as a 1 pxCanvasTextline drawn just inside the box (an inset outline), keeping the size the viewport gutters allow (spec:AST-059FR1, FR3, FR4). A focused surface keeps the shared focus ring. FR10 names Popover's internalsurfaceEdgestyles (edgeWithFocusRing,edgeKeepingFocus), why they hold the edge and the ring together, and why they stay internal (architecture:knowledge-contractsDEC-22).verified_bylists the forced-colors edge tests.OverlayEdges.forcedColors.a11y.chromium.spec.tsreads a surface's edge as a border or an outline, asserts an outline edge sits inside the box (outline-offsetat most minus its width), adds a check that a capped DropdownMenu (WithSections at a 220 px viewport) keeps 16 px below its painted surface, checks that a keyboard-focused Popover dialog surface keeps the focus ring with forced colors on and off, and that a keyboard-focused sub-menu flyout keeps it in forced colors. That check fails on main's build and passes on this head's.usePopover.forcedColorsEdge.test.tsxalso asserts no outline edge outside forced colors (the ring's own:focus-visiblerules excepted);Popover.test.tsxexpects the surface's ring-with-edge style on a focused surface.[fix]patch.Authority
spec:AST-059FR1, FR3, FR4 (a layer stays inside its viewport gutter) andcomponent:DropdownMenuFR7;component:PopoverFR10 (a visible forced-colors edge; this changes only which side of the box it sits on). Specs ruled this records-decided, with forced-colors stills across the popover consumers as a condition.Evidence
check:knowledgeare clean.Writing rubric results
Scope
Components: Popover, DropdownMenu, ContextMenu.
Fixes #13658. Thanks to @korkt-kim for the measurements.
Owner and land path