Repository navigation
Conversation
Browsers match :focus-visible on a text field whatever the input, and WebKit on an element focused by script, so a tap or a click that focused a disabled field, or opened a sheet whose row takes focus, painted a ring (interaction-modality INV1, AST-085 FR6). The modality store now sets one private custom property on each document's root, --astryx-focus-ring: 0 after a pointer press, cleared after a navigation key (unset reads as 1, so server markup and a page with no input yet keep keyboard rings). The shared rings scale by it: focusOutlineStyles and the focus-owner ring multiply their outline width, and the disabled-field rings mix their border back to the rest color and zero their inset shadow. Text fields start the store through useFieldInputStyling, so a disabled field alone on a page is covered. Tests that pinned the ring's exact declarations are updated.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec eefff0d |
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| ResizeHandle | 23.6 kB (+1.3 kB) · 4.3 kB CSS (+18 B) | — | — · — · — |
| lab/MediaPlayer | 32.4 kB (+1.2 kB) · 165 B CSS (0) | — | — · — · — |
| TopNavMegaMenuFeaturedCard | 9.5 kB (+1.1 kB) · 3.6 kB CSS (+15 B) | — | — · — · — |
217 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| LayoutPanel | 23.4 kB (+1.1 kB) · 5.1 kB CSS (+20 B) | — | — · — · — |
| Typeahead | 95.5 kB (+706 B) · 14.5 kB CSS (+110 B) | — | — · ✓ · — |
| TextInput · Storybook | 101.9 kB (+706 B) · 12.9 kB CSS (+69 B) | 416 (0) | — · ✓ · — |
| NumberInput · Storybook | 106.8 kB (+687 B) · 13.1 kB CSS (+60 B) | 1,482 (0) | — · ✓ · — |
| lab/TransferListSelector | 151.6 kB (+715 B) · 1.4 kB CSS (0) | — | — · — · — |
| TextArea · Storybook | 95.2 kB (+644 B) · 10.0 kB CSS (+70 B) | 509 (0) | — · ✓ · — |
| lab/EmojiPicker | 121.6 kB (+709 B) · 751 B CSS (0) | — | — · — · — |
| lab/TransferList | 139.7 kB (+689 B) · 1.2 kB CSS (0) | — | — · — · — |
| Selector | 120.6 kB (+590 B) · 19.8 kB CSS (+97 B) | — | — · ✓ · — |
| charts/Chart | 248.3 kB (+684 B) · 516 B CSS (0) | — | — · — · — |
| Pagination | 153.8 kB (+600 B) · 20.1 kB CSS (+84 B) | — | — · — · — |
| lab/Comments | 389.0 kB (+669 B) · 2.5 kB CSS (0) | — | — · — · — |
| charts/ChartTooltip | 224.8 kB (+665 B) · 451 B CSS (0) | — | — · — · — |
| DateInput · Storybook | 208.6 kB (+577 B) · 19.0 kB CSS (+80 B) | 6,363 (0) | — · ✓ · — |
| lab/CommentThread | 381.8 kB (+654 B) · 2.4 kB CSS (0) | — | — · — · — |
| DateTimeInput · Storybook | 232.5 kB (+585 B) · 20.7 kB CSS (+68 B) | 3,691 (0) | — · ✓ · — |
| Tokenizer | 113.3 kB (+550 B) · 22.0 kB CSS (+98 B) | — | — · — · — |
| MultiSelector · Storybook | 109.5 kB (+569 B) · 19.0 kB CSS (+72 B) | 2,768 (0) | — · ✓ · — |
| ComplexSelector | 84.2 kB (+592 B) · 13.2 kB CSS (+29 B) | — | — · — · — |
| TimeInput · Storybook | 180.7 kB (+543 B) · 17.9 kB CSS (+77 B) | 1,881 (0) | — · ✓ · — |
| DateRangeInput · Storybook | 106.6 kB (+546 B) · 14.3 kB CSS (+71 B) | 704 (0) | — · ✓ · — |
| lab/CommentComposer | 187.0 kB (+612 B) · 1.9 kB CSS (0) | — | — · — · — |
| CheckboxList | 75.3 kB (+590 B) · 8.1 kB CSS (+16 B) | — | — · — · — |
| RadioList | 63.1 kB (+587 B) · 7.7 kB CSS (+15 B) | — | — · — · — |
| RadioListItem | 78.6 kB (+587 B) · 11.2 kB CSS (+15 B) | — | — · — · — |
| FileInput | 77.9 kB (+583 B) · 12.8 kB CSS (+17 B) | — | — · — · — |
| lab/SelectableCardGroup | 72.0 kB (+592 B) · 162 B CSS (0) | — | — · — · — |
| PowerSearch | 318.6 kB (+499 B) · 27.4 kB CSS (+80 B) | — | — · — · — |
| richtext/RichTextEditorToolbar | 315.6 kB (+579 B) · 454 B CSS (0) | — | — · — · — |
| lab/ChatEmojiPicker | 128.3 kB (+562 B) · 773 B CSS (0) | — | — · — · — |
| lab/ChatReactionBar | 129.5 kB (+560 B) · 1.1 kB CSS (0) | — | — · — · — |
| MoreMenu | 114.0 kB (+515 B) · 19.8 kB CSS (+36 B) | — | — · — · — |
| TableCell | 106.7 kB (+508 B) · 20.2 kB CSS (+41 B) | — | — · — · — |
| ContextMenu | 105.6 kB (+514 B) · 19.6 kB CSS (+33 B) | — | — · — · — |
| Markdown | 208.9 kB (+513 B) · 23.4 kB CSS (+34 B) | — | — · — · — |
| Carousel | 78.2 kB (+517 B) · 12.1 kB CSS (+22 B) | — | — · — · — |
| TableHeaderCell | 106.6 kB (+504 B) · 20.0 kB CSS (+35 B) | — | — · — · — |
| Table | 124.6 kB (+497 B) · 21.2 kB CSS (+37 B) | — | — · — · — |
| DropdownMenu | 113.7 kB (+488 B) · 19.8 kB CSS (+36 B) | — | — · ✓ · — |
| lab/VideoPlayer | 231.4 kB (+521 B) · 2.1 kB CSS (0) | — | — · — · — |
| ToggleButton | 95.3 kB (+494 B) · 11.3 kB CSS (+20 B) | — | — · — · — |
| SegmentedControl | 103.9 kB (+490 B) · 7.3 kB CSS (+20 B) | — | — · — · — |
| Timestamp | 31.7 kB (+485 B) · 11.4 kB CSS (+19 B) | — | — · — · — |
| CheckboxListItem | 82.4 kB (+486 B) · 12.5 kB CSS (+12 B) | — | — · — · — |
| BreadcrumbItem | 102.9 kB (+473 B) · 14.0 kB CSS (+23 B) | — | — · — · — |
| Dialog | 28.2 kB (+477 B) · 7.3 kB CSS (+19 B) | — | — · ✓ · — |
| DropdownMenuSubMenu | 80.8 kB (+485 B) · 11.0 kB CSS (+11 B) | — | — · ✓ · — |
| ContextMenuItem | 39.1 kB (+483 B) · 7.3 kB CSS (+11 B) | — | — · — · — |
| Slider | 116.7 kB (+477 B) · 9.2 kB CSS (+15 B) | — | — · — · — |
| NavHeadingMenuItem | 19.1 kB (+476 B) · 6.7 kB CSS (+15 B) | — | — · — · — |
| HoverCard | 31.5 kB (+474 B) · 4.8 kB CSS (+16 B) | — | — · — · — |
| Toast | 107.8 kB (+471 B) · 11.5 kB CSS (+19 B) | — | — · — · — |
| Drawer | 57.6 kB (+470 B) · 8.8 kB CSS (+19 B) | — | — · — · — |
| SideNavHeading | 88.5 kB (+469 B) · 12.5 kB CSS (+20 B) | — | — · — · — |
| Timer | 16.1 kB (+469 B) · 6.4 kB CSS (+18 B) | — | — · — · — |
| lab/MediaFullscreenButton | 223.7 kB (+486 B) · 1.5 kB CSS (0) | — | — · — · — |
| ChatMessageList | 30.7 kB (+472 B) · 7.4 kB CSS (+13 B) | — | — · — · — |
| lab/MediaCaptionsButton | 223.7 kB (+485 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaTime | 223.7 kB (+485 B) · 1.5 kB CSS (0) | — | — · — · — |
| Popover | 104.7 kB (+467 B) · 15.5 kB CSS (+17 B) | — | — · — · — |
| TableSelectionToolbar | 78.5 kB (+455 B) · 14.6 kB CSS (+29 B) | — | — · — · — |
| lab/MediaSeekButton | 223.7 kB (+484 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaTimeSlider | 223.7 kB (+484 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaVolume | 223.7 kB (+484 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaPlayButton | 223.7 kB (+483 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaPlaybackRate | 223.7 kB (+482 B) · 1.5 kB CSS (0) | — | — · — · — |
| DrawerHeader | 71.4 kB (+461 B) · 14.3 kB CSS (+18 B) | — | — · — · — |
| lab/AudioPlayer | 233.8 kB (+479 B) · 1.8 kB CSS (0) | — | — · — · — |
| ChatLayoutScrollButton | 68.6 kB (+457 B) · 11.3 kB CSS (+21 B) | — | — · — · — |
| BaseTypeahead | 84.3 kB (+463 B) · 12.1 kB CSS (+14 B) | — | — · ✓ · — |
| DialogHeader | 71.3 kB (+460 B) · 12.8 kB CSS (+17 B) | — | — · — · — |
| Button | 68.0 kB (+458 B) · 11.1 kB CSS (+18 B) | — | — · — · — |
| TopNavHeading | 88.1 kB (+461 B) · 12.4 kB CSS (+15 B) | — | — · — · — |
| SideNavCollapseButton | 68.9 kB (+455 B) · 11.2 kB CSS (+20 B) | — | — · — · — |
| Banner | 70.1 kB (+453 B) · 11.7 kB CSS (+21 B) | — | — · — · — |
| ChatToolCalls | 35.0 kB (+457 B) · 8.8 kB CSS (+17 B) | — | — · — · — |
| IconButton | 68.0 kB (+456 B) · 11.1 kB CSS (+18 B) | — | — · — · — |
| InfoTip | 52.3 kB (+455 B) · 5.7 kB CSS (+19 B) | — | — · — · — |
| lab/TourStep | 97.1 kB (+474 B) · 691 B CSS (0) | — | — · — · — |
| Spinner | 27.2 kB (+461 B) · 6.6 kB CSS (+12 B) | — | — · — · — |
| SideNavItem | 82.7 kB (+455 B) · 12.3 kB CSS (+17 B) | — | — · — · — |
| lab/LineClamp | 16.1 kB (+471 B) · 168 B CSS (0) | — | — · — · — |
| CommandPalette | 83.1 kB (+456 B) · 13.5 kB CSS (+14 B) | — | — · — · — |
| NavHeadingMenu | 19.3 kB (+454 B) · 3.5 kB CSS (+16 B) | — | — · — · — |
| lab/ListInput | 97.6 kB (+468 B) · 922 B CSS (0) | — | — · — · — |
| lab/TabBarMoreList | 104.6 kB (+468 B) · 1.8 kB CSS (0) | — | — · — · — |
| Calendar | 79.2 kB (+450 B) · 11.8 kB CSS (+17 B) | — | — · — · — |
| CommandPaletteInput | 34.4 kB (+453 B) · 7.9 kB CSS (+14 B) | — | — · — · — |
| lab/DiffViewer | 96.3 kB (+467 B) · 2.1 kB CSS (0) | — | — · — · — |
| ChatLayout | 91.6 kB (+445 B) · 11.7 kB CSS (+19 B) | — | — · — · — |
| ChatSendButton | 68.4 kB (+447 B) · 11.2 kB CSS (+17 B) | — | — · — · — |
| Collapsible | 30.0 kB (+448 B) · 4.6 kB CSS (+16 B) | — | — · — · — |
| MobileNavToggle | 68.3 kB (+446 B) · 11.1 kB CSS (+18 B) | — | — · — · — |
| ChatComposer | 91.1 kB (+440 B) · 13.5 kB CSS (+22 B) | — | — · — · — |
| TopNavMegaMenu | 82.1 kB (+444 B) · 13.0 kB CSS (+18 B) | — | — · — · — |
| TreeList · Storybook | 47.4 kB (+452 B) · 6.0 kB CSS (+10 B) | 1,245 (0) | — · ✓ · — |
| BottomSheet | 75.8 kB (+447 B) · 7.9 kB CSS (+14 B) | — | — · — · — |
| CheckboxInput | 71.4 kB (+443 B) · 10.6 kB CSS (+18 B) | — | — · — · — |
| lab/CommentPin | 62.0 kB (+459 B) · 1.2 kB CSS (0) | — | — · — · — |
| InputGroup | 63.6 kB (+443 B) · 8.9 kB CSS (+15 B) | — | — · — · — |
| Lightbox | 151.6 kB (+441 B) · 12.3 kB CSS (+17 B) | — | — · — · — |
| ListItem | 81.5 kB (+446 B) · 12.5 kB CSS (+12 B) | — | — · — · — |
| ChatComposerInput | 88.2 kB (+443 B) · 12.5 kB CSS (+14 B) | — | — · — · — |
| ChatComposerTokenElement | 88.2 kB (+443 B) · 12.5 kB CSS (+14 B) | — | — · — · — |
| ChatDictationButton | 68.6 kB (+436 B) · 11.2 kB CSS (+21 B) | — | — · — · — |
| DropdownMenuRadioItem | 29.8 kB (+444 B) · 7.6 kB CSS (+13 B) | — | — · ✓ · — |
| TopNavMenu | 87.5 kB (+438 B) · 12.4 kB CSS (+19 B) | — | — · — · — |
| AvatarGroup | 50.1 kB (+436 B) · 6.1 kB CSS (+16 B) | — | — · — · — |
| lab/NavigationStack | 86.5 kB (+452 B) · 1.5 kB CSS (0) | — | — · — · — |
| AppShell | 101.2 kB (+438 B) · 14.9 kB CSS (+13 B) | — | — · — · — |
| DropdownMenuItem | 28.9 kB (+440 B) · 7.1 kB CSS (+10 B) | — | — · ✓ · — |
| lab/Schedule | 118.0 kB (+450 B) · 3.9 kB CSS (0) | — | — · — · — |
| DropdownMenuCheckboxItem | 29.8 kB (+436 B) · 7.6 kB CSS (+13 B) | — | — · — · — |
| lab/NavigationScreen | 86.5 kB (+449 B) · 1.5 kB CSS (0) | — | — · — · — |
| Field | 61.4 kB (+434 B) · 7.6 kB CSS (+13 B) | — | — · ✓ · — |
| StatusDot | 35.1 kB (+426 B) · 5.7 kB CSS (+18 B) | — | — · — · — |
| TabMenu | 84.6 kB (+426 B) · 12.3 kB CSS (+17 B) | — | — · — · — |
| Thumbnail | 72.4 kB (+425 B) · 12.7 kB CSS (+16 B) | — | — · — · — |
| Heading | 14.5 kB (+423 B) · 5.8 kB CSS (+17 B) | — | — · — · — |
| Text | 13.7 kB (+423 B) · 5.8 kB CSS (+17 B) | — | — · — · — |
| AvatarGroupOverflow | 53.2 kB (+421 B) · 6.1 kB CSS (+18 B) | — | — · — · — |
| Stepper | 69.7 kB (+419 B) · 11.3 kB CSS (+20 B) | — | — · — · — |
| TopNav | 81.4 kB (+422 B) · 12.1 kB CSS (+17 B) | — | — · — · — |
| FieldLabel | 57.2 kB (+420 B) · 6.1 kB CSS (+18 B) | — | — · ✓ · — |
| Avatar | 47.2 kB (+419 B) · 6.0 kB CSS (+18 B) | — | — · — · — |
| CodeBlock | 84.0 kB (+419 B) · 12.9 kB CSS (+18 B) | — | — · — · — |
| Link | 58.2 kB (+422 B) · 7.4 kB CSS (+15 B) | — | — · — · — |
| lab/DialogHeroHeader | 92.5 kB (+435 B) · 372 B CSS (0) | — | — · — · — |
| richtext/RichTextEditor | 311.2 kB (+435 B) · 2.7 kB CSS (0) | — | — · — · — |
| richtext/RichTextView | 287.9 kB (+435 B) · 2.4 kB CSS (0) | — | — · — · — |
| AlertDialog | 133.5 kB (+417 B) · 16.2 kB CSS (+16 B) | — | — · — · — |
| MobileNav | 79.5 kB (+415 B) · 11.8 kB CSS (+18 B) | — | — · — · — |
| Switch | 111.4 kB (+416 B) · 10.5 kB CSS (+17 B) | — | — · — · — |
| Tooltip | 33.4 kB (+413 B) · 4.8 kB CSS (+17 B) | — | — · — · — |
| SideNav | 124.4 kB (+413 B) · 12.5 kB CSS (+16 B) | — | — · — · — |
| Toolbar | 48.6 kB (+399 B) · 8.6 kB CSS (+10 B) | — | — · — · — |
| charts/ChartLegend | 49.7 kB (+405 B) · 224 B CSS (0) | — | — · — · — |
| BottomSheetSwitcher | 19.5 kB (+385 B) · 3.5 kB CSS (+16 B) | — | — · — · — |
| TabList | 48.8 kB (+386 B) · 6.8 kB CSS (+15 B) | — | — · — · — |
| TopNavMegaMenuItem | 15.7 kB (+380 B) · 4.2 kB CSS (+14 B) | — | — · — · — |
| lab/TabBar | 84.9 kB (+386 B) · 1.8 kB CSS (0) | — | — · — · — |
| ButtonGroup | 45.1 kB (+375 B) · 3.7 kB CSS (+9 B) | — | — · — · — |
| SelectableCard | 19.6 kB (+82 B) · 8.1 kB CSS (+17 B) | — | — · — · — |
| ClickableCard | 19.4 kB (+67 B) · 7.9 kB CSS (+21 B) | — | — · — · — |
| Item | 20.9 kB (+59 B) · 6.2 kB CSS (+10 B) | — | — · — · — |
| SelectorOption | 24.7 kB (+58 B) · 6.8 kB CSS (+10 B) | — | — · — · — |
| Token | 30.1 kB (+52 B) · 5.0 kB CSS (+13 B) | — | — · — · — |
| ChatTokenizedText | 7.6 kB (+48 B) · 4.1 kB CSS (+15 B) | — | — · — · — |
| TopNavItem | 14.7 kB (+47 B) · 4.0 kB CSS (+15 B) | — | — · — · — |
| FormLayout | 6.9 kB (+45 B) · 3.5 kB CSS (+16 B) | — | — · — · — |
| Kbd | 17.3 kB (+45 B) · 3.6 kB CSS (+16 B) | — | — · — · — |
| ChatMessageMetadata | 20.9 kB (+44 B) · 4.2 kB CSS (+16 B) | — | — · — · — |
| CommandPaletteList | 16.5 kB (+43 B) · 3.4 kB CSS (+16 B) | — | — · — · — |
| OverflowList | 12.7 kB (+41 B) · 3.7 kB CSS (+18 B) | — | — · — · — |
| AspectRatio | 4.0 kB (+39 B) · 3.6 kB CSS (+19 B) | — | — · — · — |
| ScrollableArea | 11.5 kB (+37 B) · 4.4 kB CSS (+21 B) | — | — · — · — |
| Center | 4.4 kB (+36 B) · 4.6 kB CSS (+19 B) | — | — · — · — |
| CommandPaletteItem | 13.6 kB (+40 B) · 3.6 kB CSS (+15 B) | — | — · — · — |
| InputGroupText | 7.0 kB (+41 B) · 3.9 kB CSS (+14 B) | — | — · — · — |
| Blockquote | 3.8 kB (+36 B) · 3.6 kB CSS (+18 B) | — | — · — · — |
| DropdownMenuGroup | 6.5 kB (+38 B) · 3.4 kB CSS (+15 B) | — | — · ✓ · — |
| DropdownMenuRadioGroup | 6.7 kB (+38 B) · 3.4 kB CSS (+15 B) | — | — · ✓ · — |
| ProgressBar | 12.4 kB (+41 B) · 6.7 kB CSS (+12 B) | — | — · — · — |
| TableBody | 6.7 kB (+37 B) · 3.3 kB CSS (+16 B) | — | — · — · — |
| Breadcrumbs | 16.6 kB (+38 B) · 3.4 kB CSS (+14 B) | — | — · — · — |
| ChatMessage | 17.3 kB (+33 B) · 3.7 kB CSS (+19 B) | — | — · — · — |
| Code | 3.8 kB (+35 B) · 3.5 kB CSS (+17 B) | — | — · — · — |
| CommandPaletteEmpty | 6.5 kB (+35 B) · 3.5 kB CSS (+17 B) | — | — · — · — |
| CommandPaletteFooter | 17.6 kB (+36 B) · 3.7 kB CSS (+16 B) | — | — · — · — |
| NavIcon | 3.7 kB (+35 B) · 3.5 kB CSS (+17 B) | — | — · — · — |
| SideNavSection | 7.1 kB (+38 B) · 3.8 kB CSS (+14 B) | — | — · — · — |
| Skeleton | 4.0 kB (+34 B) · 3.8 kB CSS (+18 B) | — | — · — · — |
| Card | 10.4 kB (+32 B) · 7.0 kB CSS (+19 B) | — | — · — · — |
| Citation | 21.2 kB (+35 B) · 4.5 kB CSS (+16 B) | — | — · — · — |
| MetadataListItem | 7.1 kB (+34 B) · 3.6 kB CSS (+17 B) | — | — · — · — |
| TypeaheadItem | 6.6 kB (+37 B) · 3.6 kB CSS (+14 B) | — | — · — · — |
| Badge | 4.5 kB (+35 B) · 4.1 kB CSS (+15 B) | — | — · — · — |
| CollapsibleGroup | 7.0 kB (+35 B) · 3.4 kB CSS (+15 B) | — | — · — · — |
| Grid | 4.6 kB (+34 B) · 3.8 kB CSS (+16 B) | — | — · — · — |
| GridSpan | 3.7 kB (+35 B) · 3.4 kB CSS (+15 B) | — | — · — · — |
| ChatSystemMessage | 7.1 kB (+39 B) · 3.8 kB CSS (+10 B) | — | — · — · — |
| CommandPaletteGroup | 3.7 kB (+36 B) · 3.5 kB CSS (+13 B) | — | — · — · — |
| Overlay | 23.9 kB (+33 B) · 4.1 kB CSS (+16 B) | — | — · — · — |
| Section | 7.9 kB (+32 B) · 6.4 kB CSS (+17 B) | — | — · — · — |
| TableFooter | 3.5 kB (+33 B) · 3.3 kB CSS (+16 B) | — | — · — · — |
| TableHeader | 3.5 kB (+33 B) · 3.3 kB CSS (+16 B) | — | — · — · — |
| TableRow | 7.2 kB (+32 B) · 4.1 kB CSS (+17 B) | — | — · — · — |
| ChatComposerDrawer | 18.4 kB (+34 B) · 4.8 kB CSS (+14 B) | — | — · — · — |
| ToggleButtonGroup | 42.0 kB (+41 B) · 3.7 kB CSS (+7 B) | — | — · — · — |
| lab/CodeEditor | 14.6 kB (+48 B) · 743 B CSS (0) | — | — · — · — |
| AvatarStatusDot | 7.7 kB (+30 B) · 3.6 kB CSS (+16 B) | — | — · — · — |
| ChatMessageBubble | 7.6 kB (+36 B) · 3.8 kB CSS (+10 B) | — | — · — · — |
| lab/MediaPlayerElement | 6.9 kB (+45 B) · 177 B CSS (0) | — | — · — · — |
| MetadataList | 17.4 kB (+29 B) · 3.8 kB CSS (+13 B) | — | — · — · — |
| lab/ChartHeatmapGL | 8.8 kB (+41 B) · 20 B CSS (0) | — | — · — · — |
| lab/LogStream | 8.3 kB (+41 B) · 1.6 kB CSS (0) | — | — · — · — |
| lab/ChartStreamGL | 7.8 kB (+40 B) · 20 B CSS (0) | — | — · — · — |
| lab/PageControl | 79.0 kB (+40 B) · 709 B CSS (0) | — | — · — · — |
| Tab | 15.1 kB (+25 B) · 4.3 kB CSS (+14 B) | — | — · — · — |
| SegmentedControlItem | 19.2 kB (+23 B) · 4.3 kB CSS (+15 B) | — | — · — · — |
| lab/ChartDotGLInteractive | 8.6 kB (+38 B) · 20 B CSS (0) | — | — · — · — |
| lab/ChatUnreadDivider | 3.8 kB (+38 B) · 348 B CSS (0) | — | — · — · — |
| charts/ChartAxis | 7.1 kB (+37 B) · 112 B CSS (0) | — | — · — · — |
| Outline | 26.7 kB (+24 B) · 4.2 kB CSS (+13 B) | — | — · — · — |
| lab/ChartDotGL | 7.7 kB (+36 B) · 20 B CSS (0) | — | — · — · — |
| lab/ChatReasoning | 7.3 kB (+36 B) · 967 B CSS (0) | — | — · — · — |
| lab/ChatVirtualizer | 57.7 kB (+36 B) · 223 B CSS (0) | — | — · — · — |
| lab/WeightedSVGIcon | 5.1 kB (+36 B) · 1.1 kB CSS (0) | — | — · — · — |
| lab/Stat | 4.3 kB (+35 B) · 646 B CSS (0) | — | — · — · — |
| Step | 32.2 kB (+17 B) · 5.7 kB CSS (+17 B) | — | — · — · — |
| lab/ChatTypingIndicator | 26.5 kB (+34 B) · 612 B CSS (0) | — | — · — · — |
| lab/CircularProgress | 9.1 kB (+34 B) · 859 B CSS (0) | — | — · — · — |
| lab/ThreeDScatterGL | 7.9 kB (+34 B) · 20 B CSS (0) | — | — · — · — |
| lab/SVGIcon | 8.0 kB (+33 B) · 765 B CSS (0) | — | — · — · — |
| lab/CircleCheckIndicator | 4.6 kB (+32 B) · 1.0 kB CSS (0) | — | — · — · — |
| DropdownMenuDivider | 5.3 kB (0) · 548 B CSS (0) | — | — · ✓ · — |
| lab/TabBarItem | 3.9 kB (0) · 1.8 kB CSS (0) | — | — · — · — |
Package size:
- @astryxdesign/cli 6.03 MB packed (+487 B); no new dependencies
- @astryxdesign/core 7.92 MB packed (+4.2 kB); no new dependencies
API changes: core +0 · ~1 · −0
1 API change (advisory)
| Package | Where | Signature | Usage | |
|---|---|---|---|---|
| ~ | core |
. · Values · const focusOutlineStyles |
const focusOutlineStyles: Readonly<{ readonly focusVisible: Readonly<{ readonly outlineWidth: stylex.StyleXClassNameFor<"outlineWidth", "0" | "2px">; readonly outlineStyle: stylex.StyleX … #fb1ca74f → const focusOutlineStyles: FocusOutlineStyles |
import {focusOutlineStyles} from '@astryxdesign/core' |
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
…operty form A leading underscore marks an implementation-protocol custom property that themes do not set, as --_container-bleed-block-* and --_section-padding- propagated are. Still a typed defineVars number (stylex.types.number).
|
/approve-spec fd4d67c |
…b included Safari moves focus with Option+Tab, which the store ignored as a modifier press, so the rings stayed off after a click. Tab now counts as keyboard input whatever is held. Any key that makes the modality keyboard turns the rings on, typing included, as INV1 says.
…ocus-ring, 1) No exported vars object: focusRingVars made the switch reachable from the package's focusOutline.stylex export (public-component-api INV12). The ring styles now read Core's underscore property literally, with fallback 1, and the modality store sets it by name. focusOutlineStyles keeps the public type it had before the gate. Adds a forced-colors keyboard-focus check.
|
/approve-spec d18d160 |
There was a problem hiding this comment.
Requesting changes: the gate now brings the rings back for Option+Tab and typed keys, and no public API change remains, but nine unit tests fail at this head, a modified Tab now changes the shared modality against the record, and the description still describes the previous head.
Blocking
- Nine unit tests fail at this head:
DropdownMenuForcedColors.test.tsx:89-91(six row cases) andTreeList.test.tsx:431-436expectvar(--_focus-ring, 1)with a space while StyleX emitsvar(--_focus-ring,1), and thePickerWheelandWheelsnapshots still hold the previous head's class, so write the expectations as StyleX emits them and regenerate the two snapshots. - A Tab with Meta, Alt or Control held now sets the shared modality to
keyboard(packages/core/src/utils/interactionModality.ts:103-109), but the interaction-modality record's System model still says a key press with those modifiers "does not change modality" (docs/architecture/interaction-modality.md:89), so either amend that line to name Tab, with an engineering owner's/approve-specfor the new head, or clear only the ring switch for Tab and keep the modality rule. - The description still says
focusOutline.stylex.tsdefines and exportsfocusRingVars, thatfocusOutlineStyles' declared types change, and that the core unit suites pass, butfocusRingVarsis gone, the declared type is unchanged, and nine tests fail, so please update the What changed, API, Evidence and Scope sections.
Smaller, non-blocking points: a disabled field alone in an iframe or Picture-in-Picture window is still untracked and forced colours still show a clicked disabled field's Highlight border (both already listed in the description), and four new comments break the source-comment style rules on sentence length or narration.
Claims and files checked
Review mode: full; reason: spec-record
Claims:
- A click or tap on a disabled text field drew the keyboard ring before: verified (Chromium on the base: a 2px inset ring).
- On WebKit, a row a sheet focuses when it opens drew its ring after a tap: not reproduced here; the new browser spec covers it in WebKit.
- After a pointer press those rings stay off: verified for the disabled field in Chromium (0px at this head).
- Keyboard focus still shows them: verified in Chromium for Tab, for a typed key after a click, and for keyboard-style focus after Alt+Tab.
- A pointer press sets the root property to 0 and any key that makes the modality keyboard clears it, typing included: verified (
interactionModality.ts:94-110). - Tab counts whatever modifier is held: verified; it contradicts the record's modifier rule (blocking finding above).
- Unset reads as 1: verified (
var(--_focus-ring, 1); Tab draws the ring with the property unset). - Each document gets its own switch: verified for tracked documents (unit case); not for a disabled field alone in a second document, as the description says.
- The ring style module defines
focusRingVars, a registered number: false (removed at this head). - The shared rings, the focus-owner ring and the disabled-field rings scale by the switch: verified.
- The field styling hook starts the store, and every text-entry field uses it: verified.
- No new module and no private data attribute: verified.
focusRingVarsis exported and reachable: false.focusOutlineStyles' declared types change: false (the built declarations are type-identical to the base's).- Each ring keeps its own
:focus-visiblecondition: verified. - The record gains one INV6 sentence: verified; an engineering owner approved it for this head.
- A BottomSheet story with an autofocus row was added: verified.
- Tests that pinned ring values follow the gated values: false for the forced-colours menu check, TreeList's published ring and the two Wheel snapshots, which fail.
- The Dialog second-document test now asserts a boolean: verified.
- The browser spec is red on the base and green here: not run here; the disabled-field red matches the base capture.
- The per-document unit case passes: verified.
- Core unit suites pass: false at this head (nine failures in four ring-related files).
- Lint and knowledge checks are clean: lint has no errors (two warnings); the knowledge check is clean.
- Public text contains no internal context: verified.
- Changeset, rings show for keyboard focus only and a clicked disabled field or an autofocused sheet or dialog row shows none: verified for the disabled field and keyboard focus in Chromium; the sheet and dialog rows follow from the same gate and were not reproduced.
Files:
.changeset/focus-rings-keyboard-only.md: clear.apps/storybook/stories/BottomSheet.stories.tsx: clear.docs/architecture/interaction-modality.md: the INV6 sentence is approved; the System model's modifier line is left contradicting the code.packages/core/src/DateInput/__snapshots__/PickerWheel.test.tsx.snap: stale snapshot, fails.packages/core/src/DateInput/__snapshots__/Wheel.test.tsx.snap: stale snapshot, fails.packages/core/src/DateRangeInput/DateRangeInput.test.tsx: clear.packages/core/src/DateTimeInput/DateTimeInput.test.tsx: clear.packages/core/src/Dialog/Dialog.test.tsx: clear.packages/core/src/DropdownMenu/DropdownMenuForcedColors.test.tsx: expected declaration spacing, six cases fail.packages/core/src/Field/fieldParts.ts: second-document gap (non-blocking); comment length (non-blocking).packages/core/src/Field/inputDisabledFocus.ts: forced-colours border (non-blocking); comment length (non-blocking).packages/core/src/MultiSelector/MultiSelector.focusableDisabled.test.tsx: clear.packages/core/src/MultiSelector/MultiSelector.test.tsx: clear.packages/core/src/NumberInput/NumberInput.test.tsx: clear.packages/core/src/Selector/Selector.focusableDisabled.test.tsx: clear.packages/core/src/Selector/Selector.test.tsx: clear.packages/core/src/TextArea/TextArea.test.tsx: clear.packages/core/src/TextInput/TextInput.test.tsx: clear.packages/core/src/TimeInput/TimeInput.test.tsx: clear.packages/core/src/TreeList/TreeList.test.tsx: expected value spacing, fails.packages/core/src/Typeahead/Typeahead.test.tsx: clear.packages/core/src/privateAttributes/focusOwner.stylex.ts: clear.packages/core/src/utils/__tests__/FocusRingModality.a11y.browser.spec.ts: clear; its WebKit cases have not run at this head.packages/core/src/utils/focusOutline.stylex.ts: clear apart from two comments (non-blocking).packages/core/src/utils/interactionModality.test.ts: asserts the modified-Tab modality the record forbids.packages/core/src/utils/interactionModality.ts: modified-Tab modality contradicts the record.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this draft head yet.
The only change since the last review makes the unit test's next-frame helper async, and its cases still pass. In Chromium, a click or a tap on a disabled text field focuses it with no ring, Tab still draws the 2px ring, and a mouse-opened sheet focuses its row with no outline.
Before CI runs:
- CI tests this branch merged with
main, whereNavHeadingMenu.test.tsx:784(added onmain) still expectsoutline-width: var(--focus-outline-width); mergemainand expect the gated width there.
The non-blocking suggestions stay on their open threads: the Tokenizer's selfRing, the INV6 trigger list, and three long comment sentences.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0): none
Claims:
- Before this change, a press on a disabled text field drew its keyboard ring: verified (base probe: 2px ring after a click and a tap).
- On WebKit, a row that a sheet focuses on open drew its ring after a tap: not checked here (Chromium only); the new spec's WebKit leg covers it in CI.
- After a pointer press, the shared and disabled-field rings stay off, and keyboard focus still shows them: verified (head probes;
interactionModality.ts:157-179). - An enabled text field still rings after a click, and component-owned rings are unchanged: verified (no other ring style file changes).
- A pointer press sets a private root property to 0: verified (
interactionModality.ts:157-162,:93-95). - Any key that makes the modality keyboard clears it, typing included: verified (
interactionModality.ts:174-175; unit case). - Tab with Meta, Alt or Control clears it and leaves the modality as it was: verified (
interactionModality.ts:168-172; unit case). - Unset reads as 1, so server markup and a page with no input show keyboard rings: verified (
focusOutline.stylex.ts:34). - Each document gets its own switch through the per-document store: verified (per-document unit case).
- The rings come back at the start of the next frame, and a press before that frame keeps them off: verified (
interactionModality.ts:100-111; unit case). - Restoring the rings inside the key's own task laid out extra times on a layer close: not re-measured here; the code defers the write as described.
- Focus that returns from a child frame or the browser's interface with no press first rings, and a window restore to the same element does not: verified (
interactionModality.ts:184-212; unit case). - Focus and the window's blur come through the shared input stream, with no listener of the store's own: verified (
interactionModality.ts:134,:278; unit case). - The shared rings read
var(--_focus-ring, 1)and scale their width by it: verified (focusOutline.stylex.ts:34-36). - The property is defined or exported nowhere: verified (four source files read it; no variable group defines it).
- The focus-owner ring multiplies its width too: verified (
focusOwner.stylex.ts:19,:46,:75). - The disabled-field rings mix their border back and drop the shadow width: verified for the field rings (
inputDisabledFocus.ts:19-21); the Tokenizer's self ring is unchanged (non-blocking). - The field-styling hook starts the store for every text-entry field: verified (
fieldParts.ts:130). - The theme editor reads the rings at rest, so its answers do not change: verified (theme-edit suite passes, 5,085 tests).
- No exports are added, and the ring styles keep their declared type: verified (the one API row is a respelling; a strict type-identity check passes).
- The interaction-modality record gains one sentence: verified (
interaction-modality.md:181-186). - A test-only sheet story is added: verified (
BottomSheet.stories.tsx:999-1035). - Tests that pinned a ring's exact declaration or class are updated to the gated value: verified (they pass on this head).
- The Dialog second-document test asserts a boolean: verified (
Dialog.test.tsx:1240). - A patch changeset covers Core and the CLI: verified.
- The new browser spec has eight cases: verified by count; its disabled-field and sheet-row Chromium cases are reproduced here by probes.
- A second document's override drops a microtask after its last release and survives a release and hold: verified (
interactionModality.ts:336-345; unit case). - Suite totals, browser-spec counts, type checks, device runs and real-Chrome stills: stated for earlier heads; the code under them is unchanged since, apart from the test helper.
- Known gap: a disabled field alone in a second document still rings after a click: verified (the field hook tracks the page's document only).
- Known gap: forced colours keep the Highlight border after a click: verified (the forced-colours value is not gated).
- Ring-site audit counts: not re-derived (a plain count finds 110
:focus-visibleuses in 46 non-test files at this head). - The first-load size table on the four reference pages: present, measured at an earlier head.
- Changeset: the shared and disabled-field rings show for keyboard focus only, and a clicked disabled field or a row a sheet focuses on open shows none: verified in Chromium; a dialog's row uses the same shared ring.
- Changeset: keyboard focus from a child frame or the browser's interface still rings: verified (unit case).
- Changeset: component-owned rings are unchanged, and the theme command's answers do not change: verified (no other ring file; theme-edit suite).
Files:
.changeset/focus-rings-keyboard-only.md: clearapps/storybook/stories/BottomSheet.stories.tsx: cleardocs/architecture/interaction-modality.md: non-blocking note (the INV6 sentence leaves out the frame-return trigger)packages/cli/api/theme-edit/_parts.mjs: clearpackages/core/src/DateInput/__snapshots__/PickerWheel.test.tsx.snap: clearpackages/core/src/DateInput/__snapshots__/Wheel.test.tsx.snap: clearpackages/core/src/DateRangeInput/DateRangeInput.test.tsx: clearpackages/core/src/DateTimeInput/DateTimeInput.test.tsx: clearpackages/core/src/Dialog/Dialog.test.tsx: clearpackages/core/src/DropdownMenu/DropdownMenuForcedColors.test.tsx: clearpackages/core/src/Field/fieldParts.ts: clearpackages/core/src/Field/inputDisabledFocus.ts: non-blocking notes (comment length; self ring ungated)packages/core/src/MultiSelector/MultiSelector.focusableDisabled.test.tsx: clearpackages/core/src/MultiSelector/MultiSelector.test.tsx: clearpackages/core/src/NumberInput/NumberInput.test.tsx: clearpackages/core/src/Selector/Selector.focusableDisabled.test.tsx: clearpackages/core/src/Selector/Selector.test.tsx: clearpackages/core/src/TextArea/TextArea.test.tsx: clearpackages/core/src/TextInput/TextInput.test.tsx: clearpackages/core/src/TimeInput/TimeInput.test.tsx: clearpackages/core/src/TreeList/TreeList.test.tsx: clearpackages/core/src/Typeahead/Typeahead.test.tsx: clearpackages/core/src/privateAttributes/focusOwner.stylex.ts: clearpackages/core/src/theme/__snapshots__/themeIndicatorSeams.test.tsx.snap: clearpackages/core/src/utils/__tests__/FocusRingModality.a11y.browser.spec.ts: clearpackages/core/src/utils/focusOutline.stylex.ts: non-blocking note (comment length); its ring values also change the class names thatmain'sNavHeadingMenu.test.tsx:784pinspackages/core/src/utils/inputStream.ts: clearpackages/core/src/utils/interactionModality.test.ts: clear (the async helper is the only change since the last review)packages/core/src/utils/interactionModality.ts: non-blocking note (comment sentence length)
|
/approve-spec aaa5da4 |
There was a problem hiding this comment.
Changes requested: one test that came in with the merge of main fails on the gated ring.
- Regression:
packages/core/src/NavMenu/NavHeadingMenu.test.tsx:784, added onmainwith NavHeadingMenu's move to the shared ring, still expectsoutline-width: var(--focus-outline-width), so it fails on this head, where the shared ring emitscalc(var(--focus-outline-width) * var(--_focus-ring,1)); expect the gated width there, asDropdownMenuForcedColors.test.tsxdoes.
Apart from that test, the change matches the focus-visibility records, and the record sentence has an engineering owner's approval for this head. In Chromium, a click or a tap on a disabled text field now focuses it with no ring, and Tab still draws the 2px ring. The non-blocking suggestions stay on their open threads: the Tokenizer's selfRing, the record sentence's trigger list, and three long comment sentences.
Claims and files checked
Review mode: same-head; reason: none
Changed rules (0): none
Claims:
- Before this change, a press on a disabled text field drew its keyboard ring: verified (base frames: a 2px ring after a click and after a tap).
- On WebKit, a row that a sheet focuses on open drew its ring after a tap: not checked here (Chromium only; Chromium does not match focus-visible there); the new browser spec's WebKit leg covers it in CI.
- After a pointer press, the shared and disabled-field rings stay off, and keyboard focus still shows them: verified (head frames;
interactionModality.ts:157-179). - An enabled text field still rings after a click, and component-owned rings are unchanged: verified (no other ring style file changes).
- A pointer press sets a private root property to 0: verified (
interactionModality.ts:94,:157-162). - Any key that makes the modality keyboard clears it, typing included: verified (
interactionModality.ts:174-175; unit case). - Tab with Meta, Alt or Control clears it and leaves the modality as it was: verified (
interactionModality.ts:168-172; unit case). - Unset reads as 1, so server markup and a page with no input show keyboard rings: verified (
focusOutline.stylex.ts:34). - Each document gets its own switch: verified (per-document unit case).
- The rings come back at the start of the next frame, and a press before that frame keeps them off: verified (
interactionModality.ts:100-111; unit case). - Restoring the rings inside the key's own task laid out extra times on a layer close: not re-measured here; the code defers the write as described.
- Focus that returns from a child frame or the browser's interface with no press first rings, and a window restore to the same element does not: verified (
interactionModality.ts:184-212; unit case). - Focus and the window's blur come through the shared input stream, with no listener of the store's own: verified (
interactionModality.ts:134,:278; unit case). - The shared rings read the switch with a fallback of 1 and scale their width by it: verified (
focusOutline.stylex.ts:34-36). - The property is defined or exported nowhere: verified (no var group defines it; the API comparison adds no row for it).
- The focus-owner ring multiplies its width too: verified (
focusOwner.stylex.ts:19,:46,:75). - The disabled-field rings mix their border back and drop the shadow width: verified for the field rings (
inputDisabledFocus.ts:19-21); the Tokenizer's self ring is unchanged (non-blocking). - The field-styling hook starts the store for every text-entry field: verified (
fieldParts.ts:130). - The theme editor reads the rings at rest, so its answers do not change: verified (
_parts.mjs:1242,:1305-1316; the theme-edit tests that read focus rings or focused borders pass at this head). - No exports are added, and the ring styles keep their declared type: verified (the one API row is a respelling; a strict type-identity check passes).
- The interaction-modality record gains one sentence: verified (
interaction-modality.md:181-186). - A test-only sheet story is added: verified (
BottomSheet.stories.tsx:999-1035). - Tests that pinned a ring's exact declaration or class are updated to the gated value: false at this head (
NavHeadingMenu.test.tsx:784, brought in by the merge, still pins the ungated width and fails). - The Dialog second-document test asserts a boolean: verified (
Dialog.test.tsx:1240). - A patch changeset covers Core and the CLI: verified.
- The new browser spec has eight cases: verified by count; its disabled-field and sheet-row Chromium cases match the frames here.
- A second document's override drops a microtask after its last release and survives a release and hold: verified (
interactionModality.ts:336-345; unit case). - Unit suite totals, browser-spec counts, type checks, device runs and real-Chrome stills: stated for earlier heads; at this head one Core unit test fails (above).
- Known gap: a disabled field alone in a second document still rings after a click: verified (the field hook tracks the page's document only).
- Known gap: forced colours keep the Highlight border after a click: verified (the forced-colours value is not gated,
inputDisabledFocus.ts:34). - Ring-site audit counts: not re-derived.
- The first-load size table on the four reference pages: present, measured at an earlier head.
- Changeset: the shared and disabled-field rings show for keyboard focus only, and a clicked disabled field or a row a sheet focuses on open shows none: verified in Chromium (frames); the Tokenizer's self ring is the exception (non-blocking).
- Changeset: keyboard focus from a child frame or the browser's interface still rings: verified (unit case).
- Changeset: component-owned rings are unchanged, and the theme command's answers do not change: verified (no other ring file changes; the focus-ring theme-edit tests pass).
Files:
.changeset/focus-rings-keyboard-only.md: clearapps/storybook/stories/BottomSheet.stories.tsx: cleardocs/architecture/interaction-modality.md: non-blocking note (the new sentence leaves out the frame-return trigger)packages/cli/api/theme-edit/_parts.mjs: clearpackages/core/src/DateInput/__snapshots__/PickerWheel.test.tsx.snap: clearpackages/core/src/DateInput/__snapshots__/Wheel.test.tsx.snap: clearpackages/core/src/DateRangeInput/DateRangeInput.test.tsx: clearpackages/core/src/DateTimeInput/DateTimeInput.test.tsx: clearpackages/core/src/Dialog/Dialog.test.tsx: clearpackages/core/src/DropdownMenu/DropdownMenuForcedColors.test.tsx: clearpackages/core/src/Field/fieldParts.ts: clearpackages/core/src/Field/inputDisabledFocus.ts: non-blocking notes (comment length; self ring ungated)packages/core/src/MultiSelector/MultiSelector.focusableDisabled.test.tsx: clearpackages/core/src/MultiSelector/MultiSelector.test.tsx: clearpackages/core/src/NumberInput/NumberInput.test.tsx: clearpackages/core/src/Selector/Selector.focusableDisabled.test.tsx: clearpackages/core/src/Selector/Selector.test.tsx: clearpackages/core/src/TextArea/TextArea.test.tsx: clearpackages/core/src/TextInput/TextInput.test.tsx: clearpackages/core/src/TimeInput/TimeInput.test.tsx: clearpackages/core/src/TreeList/TreeList.test.tsx: clearpackages/core/src/Typeahead/Typeahead.test.tsx: clearpackages/core/src/privateAttributes/focusOwner.stylex.ts: clearpackages/core/src/theme/__snapshots__/themeIndicatorSeams.test.tsx.snap: clearpackages/core/src/utils/__tests__/FocusRingModality.a11y.browser.spec.ts: clearpackages/core/src/utils/focusOutline.stylex.ts: blocking finding (its gated width fails the mergedNavHeadingMenu.test.tsx:784); non-blocking note (comment length)packages/core/src/utils/inputStream.ts: clearpackages/core/src/utils/interactionModality.test.ts: clearpackages/core/src/utils/interactionModality.ts: non-blocking note (comment sentence length)
|
/approve-spec 1ec1679 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this draft head yet.
The NavHeadingMenu ring test now expects the gated outline width and passes, which clears the last review's only blocker. The change matches the focus-visibility records, and the record sentence has an engineering owner's approval for this head. The non-blocking suggestions stay on their open threads: the Tokenizer's selfRing, the record sentence's trigger list, and three long comment sentences.
Claims and files checked
Review mode: incremental; reason: none
Changed rules (0): none
Claims:
- Before this change, a press on a disabled text field drew its keyboard ring: verified (base frames: a 2px ring after a click and after a tap).
- On WebKit, a row that a sheet focuses on open drew its ring after a tap: verified by the code path (the row's outline width is gated,
focusOutline.stylex.ts:148, and a press sets the switch to 0,interactionModality.ts:157-163); WebKit itself was not run here, and the browser spec's WebKit leg covers it in CI. - After a pointer press, the shared and disabled-field rings stay off, and keyboard focus still shows them: verified (head frames;
interactionModality.ts:157-180). - An enabled text field still rings after a click, and component-owned rings are unchanged: verified (no other ring style file changes).
- A pointer press sets a private root property to 0: verified (
interactionModality.ts:82-99,:157-163). - Any key that makes the modality keyboard clears it, typing included: verified (
interactionModality.ts:174-175; unit case). - Tab with Meta, Alt or Control clears it and leaves the modality as it was: verified (
interactionModality.ts:168-173; unit case). - Unset reads as 1, so server markup and a page with no input show keyboard rings: verified (
focusOutline.stylex.ts:34). - Each document gets its own switch: verified (per-document unit case).
- The rings come back at the start of the next frame, and a press before that frame keeps them off: verified (
interactionModality.ts:100-111; unit case). - Restoring the rings inside the key's own task laid out extra times on a layer close: the code defers the write to the next frame as described (
interactionModality.ts:109-111); the layout counts were not re-measured here. - Focus that returns from a child frame or the browser's interface with no press first rings, and a window restore to the same element does not: verified (
interactionModality.ts:184-212; unit case). - Focus and the window's blur come through the shared input stream, with no listener of the store's own: verified (
interactionModality.ts:118-136,:278; unit case). - The shared rings read the switch with a fallback of 1 and scale their width by it: verified (
focusOutline.stylex.ts:34-36). - The property is defined or exported nowhere: verified (no variable group or export defines it; the API comparison adds no row for it).
- The focus-owner ring multiplies its width too: verified (
focusOwner.stylex.ts:19,:46,:75). - The disabled-field rings mix their border back and drop the shadow width: verified for the field rings (
inputDisabledFocus.ts:20-21); the Tokenizer's self ring is unchanged (non-blocking). - The field-styling hook starts the store for every text-entry field: verified (
fieldParts.ts:130). - The theme editor reads the rings at rest, so its answers do not change: verified (
_parts.mjs:1242,:1305-1316; the theme-edit suite passed on the previous head, whose CLI code is the same). - No exports are added, and the ring styles keep their declared type: verified (the one API row is a respelling; a strict type-identity check passes).
- The interaction-modality record gains one sentence: verified (
interaction-modality.md:181-186). - A test-only sheet story is added: verified (
BottomSheet.stories.tsx:999-1035). - Tests that pinned a ring's exact declaration or class are updated to the gated value: verified at this head (
NavHeadingMenu.test.tsx:784-787now included; the ring-related unit files pass). - The Dialog second-document test asserts a boolean: verified (
Dialog.test.tsx:1240). - A patch changeset covers Core and the CLI: verified.
- The new browser spec has eight cases: verified by count; its disabled-field and sheet-row Chromium cases match the frames here.
- A second document's override drops a microtask after its last release and survives a release and hold: verified (
interactionModality.ts:336-345; unit case). - Listening that resumes while the switch is 0 hears the window's blur again: verified (
interactionModality.ts:280-285; unit case). - Unit suite totals, browser-spec counts, type checks, device runs and real-Chrome stills: stated for earlier heads; at this head the ring-related unit files pass.
- Known gap: a disabled field alone in a second document still rings after a click: verified (the field hook tracks the page's document only).
- Known gap: forced colours keep the Highlight border after a click: verified (the forced-colours value is not gated,
inputDisabledFocus.ts:34). - Ring-site audit counts (105 occurrences in 44 non-test files): close to a recount at the earlier head the description's stills use (107 in 45; the counting method is not stated), and 111 in 46 at this head after merges of
main; a context count that changes no behaviour. - The first-load size table on the four reference pages: present, measured at an earlier head.
- Changeset: the shared and disabled-field rings show for keyboard focus only, and a clicked disabled field or a row a sheet focuses on open shows none: verified in Chromium (frames); the Tokenizer's self ring is the exception (non-blocking).
- Changeset: keyboard focus from a child frame or the browser's interface still rings: verified (unit case).
- Changeset: component-owned rings are unchanged, and the theme command's answers do not change: verified (no other ring file changes; theme-edit code as on the previous head).
Files:
.changeset/focus-rings-keyboard-only.md: clearapps/storybook/stories/BottomSheet.stories.tsx: cleardocs/architecture/interaction-modality.md: non-blocking note (the new sentence leaves out the frame-return trigger)packages/cli/api/theme-edit/_parts.mjs: clearpackages/core/src/DateInput/__snapshots__/PickerWheel.test.tsx.snap: clearpackages/core/src/DateInput/__snapshots__/Wheel.test.tsx.snap: clearpackages/core/src/DateRangeInput/DateRangeInput.test.tsx: clearpackages/core/src/DateTimeInput/DateTimeInput.test.tsx: clearpackages/core/src/Dialog/Dialog.test.tsx: clearpackages/core/src/DropdownMenu/DropdownMenuForcedColors.test.tsx: clearpackages/core/src/Field/fieldParts.ts: clearpackages/core/src/Field/inputDisabledFocus.ts: non-blocking notes (comment length; self ring ungated)packages/core/src/MultiSelector/MultiSelector.focusableDisabled.test.tsx: clearpackages/core/src/MultiSelector/MultiSelector.test.tsx: clearpackages/core/src/NavMenu/NavHeadingMenu.test.tsx: clear (now expects the gated width and passes)packages/core/src/NumberInput/NumberInput.test.tsx: clearpackages/core/src/Selector/Selector.focusableDisabled.test.tsx: clearpackages/core/src/Selector/Selector.test.tsx: clearpackages/core/src/TextArea/TextArea.test.tsx: clearpackages/core/src/TextInput/TextInput.test.tsx: clearpackages/core/src/TimeInput/TimeInput.test.tsx: clearpackages/core/src/TreeList/TreeList.test.tsx: clearpackages/core/src/Typeahead/Typeahead.test.tsx: clearpackages/core/src/privateAttributes/focusOwner.stylex.ts: clearpackages/core/src/theme/__snapshots__/themeIndicatorSeams.test.tsx.snap: clearpackages/core/src/utils/__tests__/FocusRingModality.a11y.browser.spec.ts: clearpackages/core/src/utils/focusOutline.stylex.ts: non-blocking note (comment length)packages/core/src/utils/inputStream.ts: clearpackages/core/src/utils/interactionModality.test.ts: clearpackages/core/src/utils/interactionModality.ts: non-blocking note (comment sentence length)
|
/approve-spec b039f65 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet. The CI workflow's admission step refused the run because CI was full, so its jobs need a re-run, and they must pass before this merges.
A click or tap on a disabled field, or on a trigger whose sheet focuses a row, leaves no shared or disabled-field ring, and Tab still draws it. The non-blocking suggestions stay on their open threads (the Tokenizer's selfRing, the record sentence's trigger list, three long comment sentences). One more, also non-blocking: the description's size table predates the store's later growth, and on this head the four reference pages grow by 447 to 671 B gzip.
Claims and files checked
Review mode: same-head; reason: none
Changed rules (0): none
Claims:
- Before this change, a press on a disabled text field drew its keyboard ring: verified (base frames: a 2px ring after a click and after a tap).
- On WebKit, a row that a sheet focuses on open drew its ring after a tap: verified by the code path (the row's outline width is gated,
focusOutline.stylex.ts:148, and a press sets the switch to 0,interactionModality.ts:157-163); WebKit was not run here. - After a pointer press, the shared and disabled-field rings stay off, and keyboard focus still shows them: verified (head frames; the browser spec's eight cases pass in Chromium).
- An enabled text field still rings after a click, and component-owned rings are unchanged: verified (no other ring style file changes).
- A pointer press sets a private root property to 0: verified (
interactionModality.ts:93-95,:157-163). - Any key that makes the modality keyboard clears it, typing included: verified (
interactionModality.ts:174-175; unit case). - Tab with Meta, Alt or Control clears it and leaves the modality as it was: verified (
interactionModality.ts:168-173; unit case). - Unset reads as 1, so server markup and a page with no input show keyboard rings: verified (
focusOutline.stylex.ts:34). - Each document gets its own switch: verified (per-document unit case).
- The rings come back at the next frame, and a press before that frame keeps them off: verified (
interactionModality.ts:100-111; unit case). - A close that also moves focus lays out once with the next-frame switch: verified (the layer-close interaction spec passes in Chromium on this head); the red run against an in-task switch was not repeated here.
- Focus that returns from a child frame or the browser's interface with no press first rings, and a window restore to the same element does not: verified (
interactionModality.ts:184-212; unit and browser cases). - Focus and the window's blur come through the shared input stream, with no listener of the store's own: verified (
interactionModality.ts:134,:278; unit case). - The shared rings read the switch with a fallback of 1 and scale their width by it: verified (
focusOutline.stylex.ts:34-36,:148-260). - The property is defined or exported nowhere: verified (no variable group or export carries it).
- The focus-owner ring multiplies its width too: verified (
focusOwner.stylex.ts:19,:46,:75). - The disabled-field rings mix their border back and drop the shadow width: verified for the field rings (
inputDisabledFocus.ts:19-21); the Tokenizer's self ring is unchanged (non-blocking). - The field-styling hook starts the store for every text-entry field: verified (
fieldParts.ts:130). - The theme editor reads the rings at rest, so its answers do not change: verified (
_parts.mjs:1342,:1405-1416; theme-editor suite on this head). - No exports are added, and the ring styles keep their declared type: verified (the one API row is a respelling; a strict type-identity check passes).
- The interaction-modality record gains one sentence: verified (
interaction-modality.md:181-186). - A test-only sheet story is added: verified (
BottomSheet.stories.tsx:999-1035). - Tests that pinned a ring's exact declaration or class are updated to the gated value: verified (the ring-related unit files pass on this head).
- The Dialog second-document test asserts a boolean: verified (
Dialog.test.tsx:1240). - A patch changeset covers Core and the CLI: verified.
- The new browser spec has eight cases: verified; all eight pass in Chromium on this head.
- A second document's override drops a microtask after its last release and survives a release and hold: verified (
interactionModality.ts:336-346; unit case). - Listening that resumes while the switch is 0 hears the window's blur again: verified (
interactionModality.ts:280-285; unit case). - Suite totals, type checks, device runs and real-Chrome stills: stated for earlier heads; on this head the ring-related unit files, the theme-editor suite and the browser specs above pass.
- Known gap: a disabled field alone in a second document still rings after a click: verified (the field hook tracks the page's document only).
- Known gap: forced colours keep the Highlight border after a click: verified (the forced-colours value is not gated,
inputDisabledFocus.ts:34). - Ring-site audit counts: a context count at an earlier head that changes no behaviour.
- The first-load size table on the four reference pages: present, but measured at an earlier head; on this head the deltas are larger (non-blocking).
- Changeset: the shared and disabled-field rings show for keyboard focus only, and a clicked disabled field or a row a sheet focuses on open shows none: verified in Chromium; the Tokenizer's self ring is the exception (non-blocking).
- Changeset: keyboard focus from a child frame or the browser's interface still rings: verified (unit and browser cases).
- Changeset: component-owned rings are unchanged, and the theme command's answers do not change: verified.
Files:
.changeset/focus-rings-keyboard-only.md: clearapps/storybook/stories/BottomSheet.stories.tsx: cleardocs/architecture/interaction-modality.md: non-blocking note (the new sentence leaves out the frame-return trigger)packages/cli/api/theme-edit/_parts.mjs: clearpackages/core/src/DateInput/__snapshots__/PickerWheel.test.tsx.snap: clearpackages/core/src/DateInput/__snapshots__/Wheel.test.tsx.snap: clearpackages/core/src/DateRangeInput/DateRangeInput.test.tsx: clearpackages/core/src/DateTimeInput/DateTimeInput.test.tsx: clearpackages/core/src/Dialog/Dialog.test.tsx: clearpackages/core/src/DropdownMenu/DropdownMenuForcedColors.test.tsx: clearpackages/core/src/Field/fieldParts.ts: clearpackages/core/src/Field/inputDisabledFocus.ts: non-blocking notes (comment length; self ring ungated)packages/core/src/MultiSelector/MultiSelector.focusableDisabled.test.tsx: clearpackages/core/src/MultiSelector/MultiSelector.test.tsx: clearpackages/core/src/NavMenu/NavHeadingMenu.test.tsx: clearpackages/core/src/NumberInput/NumberInput.test.tsx: clearpackages/core/src/Selector/Selector.focusableDisabled.test.tsx: clearpackages/core/src/Selector/Selector.test.tsx: clearpackages/core/src/TextArea/TextArea.test.tsx: clearpackages/core/src/TextInput/TextInput.test.tsx: clearpackages/core/src/TimeInput/TimeInput.test.tsx: clearpackages/core/src/TreeList/TreeList.test.tsx: clearpackages/core/src/Typeahead/Typeahead.test.tsx: clearpackages/core/src/privateAttributes/focusOwner.stylex.ts: clearpackages/core/src/theme/__snapshots__/themeIndicatorSeams.test.tsx.snap: clearpackages/core/src/utils/__tests__/FocusRingModality.a11y.browser.spec.ts: clearpackages/core/src/utils/focusOutline.stylex.ts: non-blocking note (comment length)packages/core/src/utils/inputStream.ts: clearpackages/core/src/utils/interactionModality.test.ts: clearpackages/core/src/utils/interactionModality.ts: non-blocking note (comment sentence length)
|
/approve-spec 16aae35 |
There was a problem hiding this comment.
Approved: CI has run on this head and passed, and the interaction-modality record change carries an engineering owner's approval for this exact head.
Nothing blocks. Four non-blocking points stay open on their existing threads:
- The collapsed Tokenizer placeholder's own disabled ring (
selfRingininputDisabledFocus.ts) still paints the literal accent border and 2px shadow, so it is the one disabled-field ring the switch does not gate. - The new INV6 sentence leaves out focus that returns from a child frame or the browser's interface, which also clears the switch.
- The Size table predates the final patch; with it the reference pages grow by +447 B to +671 B gzip.
- Three new comments run past the comment-style sentence limits (
focusOutline.stylex.ts:29-33,inputDisabledFocus.ts:14-18,interactionModality.ts:100-103).
Claims and files checked
Review mode: same-head; reason: none
Claims:
- Changeset: the shared rings and the disabled-field rings show for keyboard focus only (verified in the shared outline, focus-owner and disabled-field styles; the collapsed Tokenizer placeholder's own ring is the non-blocking exception).
- Changeset: after a tap or a click, a focused disabled text field or a sheet row focused on open shows none of these rings (verified: 0px shadow after a click or a tap, no outline on a mouse-opened sheet row).
- Changeset: keyboard focus still rings, including focus from a child frame or the browser's interface (verified in the store's focus-return handling and the passing child-frame browser case).
- Changeset: component-owned rings are unchanged, and the theme command reads rings as the keyboard sees them (verified; the theme editor folds the gated values at rest).
- Changeset: patch releases for Core and the CLI (verified).
- Description: before, a tap or click on a disabled text field drew its ring (verified on the base frames and the ungated base styles); the WebKit sheet-row case is stated from device results, not reproduced here.
- Description: a press sets the private switch to 0 per document; a keyboard key, typing included, or a modified Tab clears it, the latter without changing modality; unset reads as 1 (verified in the store and its unit cases).
- Description: the rings come back at the next frame, and a press before that frame keeps them off (verified).
- Description: focus returning from a child frame or the browser rings, a window restore to the same element does not, and both are heard through the shared input stream (verified).
- Description: the property is defined and exported nowhere; no exports, module, attribute or variable group added; the outline styles keep their declared type although the API report lists a respelled row (verified, matching CI's API report).
- Description: the INV6 sentence, the new sheet story, the updated ring tests and snapshots, and the Dialog boolean assertion (verified in the diff; CI unit shards pass).
- Description: the new browser spec's eight cases pass (verified in Chromium in CI on this head); WebKit runs it in the weekly WebKit job, not in pull-request CI.
- Description: the second-document release, frame and window, per-document and input-stream unit cases, and the one-layout-per-close interaction spec (verified passing in CI's unit and full Chromium interaction runs).
- Description: the Size table (stale: measured at an earlier head; the final patch measures docs +447 B, form +671 B, menu +491 B, table +498 B gzip).
- Description: the known gaps, a disabled field alone in a second document and forced colours after a click (consistent with the code).
- Description: the ring-site audit count and the device and simulator results (informational; device results judged from their text).
Files:
.changeset/focus-rings-keyboard-only.md: clearapps/storybook/stories/BottomSheet.stories.tsx: cleardocs/architecture/interaction-modality.md: non-blocking: INV6 sentence omits the child-frame and browser returnpackages/cli/api/theme-edit/_parts.mjs: clearpackages/core/src/DateInput/__snapshots__/PickerWheel.test.tsx.snap: clearpackages/core/src/DateInput/__snapshots__/Wheel.test.tsx.snap: clearpackages/core/src/DateRangeInput/DateRangeInput.test.tsx: clearpackages/core/src/DateTimeInput/DateTimeInput.test.tsx: clearpackages/core/src/Dialog/Dialog.test.tsx: clearpackages/core/src/DropdownMenu/DropdownMenuForcedColors.test.tsx: clearpackages/core/src/Field/fieldParts.ts: clearpackages/core/src/Field/inputDisabledFocus.ts: non-blocking: selfRing ungated; comment stylepackages/core/src/MultiSelector/MultiSelector.focusableDisabled.test.tsx: clearpackages/core/src/MultiSelector/MultiSelector.test.tsx: clearpackages/core/src/NavMenu/NavHeadingMenu.test.tsx: clearpackages/core/src/NumberInput/NumberInput.test.tsx: clearpackages/core/src/Selector/Selector.focusableDisabled.test.tsx: clearpackages/core/src/Selector/Selector.test.tsx: clearpackages/core/src/TextArea/TextArea.test.tsx: clearpackages/core/src/TextInput/TextInput.test.tsx: clearpackages/core/src/TimeInput/TimeInput.test.tsx: clearpackages/core/src/TreeList/TreeList.test.tsx: clearpackages/core/src/Typeahead/Typeahead.test.tsx: clearpackages/core/src/privateAttributes/focusOwner.stylex.ts: clearpackages/core/src/theme/__snapshots__/themeIndicatorSeams.test.tsx.snap: clearpackages/core/src/utils/__tests__/FocusRingModality.a11y.browser.spec.ts: clearpackages/core/src/utils/focusOutline.stylex.ts: non-blocking: comment stylepackages/core/src/utils/inputStream.ts: clearpackages/core/src/utils/interactionModality.test.ts: clearpackages/core/src/utils/interactionModality.ts: non-blocking: comment style
rubyycheung
left a comment
There was a problem hiding this comment.
Design approval for the shared focus-ring change. Compared the exact base and this head in Chromium: mouse clicks and emulated taps no longer ring a disabled field, Tab still rings it, and switching back to keyboard restores shared rings. Editable fields keep their click-to-type indicator. The secondary-document and forced-colors pointer gaps remain; the Safari sheet-row case was not independently tested in this review.
User impact
:focus-visibleon text fields whatever the input.data-autofocus) drew its ring after a tap-open, because WebKit matches:focus-visibleon focus by script.architecture:interaction-modalityINV1 andspec:AST-085FR6.What changed
utils/interactionModality.ts(the existing modality store):onPointerDownsets one private custom property on its document's root,--_focus-ring: 0. Any key that makes the modality keyboard clears it, typing included. A Tab with Meta, Alt or Control held also clears it, because Safari moves focus with Option+Tab, but leaves the modality as it was: the record says a modifier press doesn't change modality. Unset reads as 1, so server markup and a page with no input yet show keyboard rings (INV1's safe default). Each document (an iframe, a Picture-in-Picture window) gets its own through the existing per-document store.subscribeInput), so it adds no document or window listener of its own (architecture:react-component-runtimeINV16).utils/focusOutline.stylex.ts(the existing shared ring owner): the shared rings read the property literally asvar(--_focus-ring, 1)and scale by it;focusOutlineStylesmultiplies its outline width. The property isn't defined or exported anywhere. It's Core's private underscore protocol, like--_container-bleed-*.privateAttributes/focusOwner.stylex.ts: the focus-owner ring multiplies its outline width too.Field/inputDisabledFocus.ts: the disabled-field rings mix their border back to the rest colour and give their inset shadow no width.Field/fieldParts.ts:useFieldInputStylingstarts the store. Every text-entry field uses it, so a disabled field alone on a page is covered.cli/api/theme-edit/_parts.mjs: the theme editor reads Core's rules with the switch at rest:var(--_focus-ring, 1)reads as 1, thencalc(2px * 1)as2pxand a one-colourcolor-mix()at 100% as that colour. Soastryx experimental themeanswers about focus rings and focused borders as before (three theme-edit tests failed without it).data-astryx-*attribute, and no vars object.focusOutlineStyles' declared type is unchanged: an explicit type alias keeps it the type it had before the gate. The built.d.tsrespells that type through local aliases, so the API report lists the row as changed, but the type it declares is the same.architecture:interaction-modalityINV6 gains one sentence naming the private root property.Core/BottomSheet"Modal with a data-autofocus row" (test-only).[fix]for Core and the CLI.Evidence
FocusRingModality.a11y.browser.spec.ts. Chromium runs locally; the WebKit project runs it in CI.interactionModality.test.tschecks that focus back from a child frame after a press rings, a press first keeps the rings off, a window restore to the same element keeps them, and a return to another element rings.interactionModality.test.tschecks that each document's root switches off on a press and back on with Option+Tab (modality stays pointer) or a typed key (modality becomes keyboard), and that the second document is untouched.LayerCloseLayout.interaction.browser.spec.tsin Chromium. With the rings switched back on inside the key's task, Escape on a Popover or a DropdownMenu laid out 3 times per close (5 of 5 closes); with the next-frame switch it lays out once. A pick and a press on the trigger were 1 either way.interactionModality.test.tschecks that a second window's focus and blur go through the input stream and stop with its last consumer, and that the rings come back at the next frame while a press before it keeps them off.color-mixfade. Keyboard focus there is checked by the forced-colours browser case.Resizable/shippedDirectionsfailures read the docsite sources, which this sandbox doesn't have; they're unrelated. Browser specs for Tokenizer, TextInput, BottomSheet and Button pass (207). tsc, strict lint, knowledge and changesets are clean.:focus-visibleoccurrences in 44 non-test files. This PR gates the shared ones (the outline-ring and focus-owner styles that most controls spread, and the disabled-field rings). The audit lists the component-owned rings and script reads it leaves, for follow-up.Real-Chrome stills (ada9d5b vs main)
Real Chromium with touch (390 × 844), production builds against the merge base 2f67389. Each image shows main and this head for Tab, a mouse press and a tap.
Size
First-load JavaScript per reference page, minified / gzip bytes, from
pnpm size:pages(main 2f67389 against this head ada9d5b). INV10 asks for this report because the change grows shared modules. Keyboard-only rings are default behaviour, so INV10's 0.3 KB cap for optional features doesn't apply (DEC-5).Most of it is the modality store's new code, which every page reaches through the shared rings. The form page is highest because text fields now start the store.
Scope
Package:
@astryxdesign/core(shared focus rings, modality store, field rings)Components: shared focus rings (
focusOutlineStylesinutils/focusOutline.stylex.ts), the focus-owner ring, the disabled-field ringsOwner: Astryx fix-loop lane 0. Land path: Specs, CodeBunny approval of the exact head, CI (including WebKit), then the merge queue. Lane 3's touch-compatibility HoverCard fix stacks on this branch.
Overlap noted (not a hold, under the Cindy-assigned rule):
packages/cli/api/theme-edit/_parts.mjsis also changed in open PRs #12775, #12792 and #12816, and others share other files of this PR. Whichever lands second resolves the conflict.