Repository navigation
Closed
Labels
hardeningComponent hardening and quality sweep
Milestone
Description
How This Works
This is a component hardening sprint running March 18 through April 10, 2026.
Each component has a checkbox. Check it off when all findings for that component are resolved.
Findings are listed under each component with a severity tag:
- P0 = broken for a class of users, crash, dead code
- P1 = quality gap, a11y violation, bug
- P2 = polish, hardcoded values, test gaps
When you fix something: create a PR, link it next to the finding, check off the finding. When all findings for a component are done, check the component box.
Shell & Navigation (7)
- AppShell ✅ PRs feat(AppShell): add variant prop for nav/content background styles #597, feat(AppShell): add contentPadding prop #612, fix(AppShell): auto height mode sidenav and sticky backgrounds #615, feat(AppShell): responsive mobile nav API (#565) #644, fix(AppShell): replace hardcoded spacing with spacingVars tokens in skip link #650, fix(AppShell): replace hardcoded px values in autoMobileTopBar with spacing tokens #667
- Breadcrumbs ✅ Covered in shell review
- Layout 🔄
- Shell work done (PRs fix(AppShell): auto height mode sidenav and sticky backgrounds #615 etc)
- P1: Does not forward ref → PR fix(Layout): forward ref and remove dead code #796
- P1:
padding=0 readability concern— eliminated: padding=0 has valid uses (full bleed content) - P2:
Sub-component xdsClassNames lack variant suffixes— eliminated: Layout sub-components are structural, don't need xdsClassName - P2: _lastBodyRowStyles unused (in TableRow, not LayoutPanel) → PR fix(Layout): forward ref and remove dead code #796
- MobileNav ✅ PRs feat(AppShell): responsive mobile nav API (#565) #644, refactor(MobileNav): combine title and header into single header prop #651, feat: shell hardening batch — entry animation, TopNavMenu mobile, collapsible items (#565) #657
- NavIcon ✅ Covered in shell review
- SideNav 🔄
- Heading icon not interactive when collapsed → PR feat(SideNav): popover for collapsed items with children #680
- Entry animation — @starting-style needs manual debugging
- TopNav ✅ PRs fix(nav): consistent gap and heading text sizes #616, fix(TopNavMegaMenu): positioning, keyboard, alignment, and responsive layout #622, feat(TopNav): mobile responsive rendering (#565) #652, feat: shell hardening batch — entry animation, TopNavMenu mobile, collapsible items (#565) #657, refactor(MegaMenu): composed children API + mobile drawer drill-down #659, fix(TopNav): set 12px padding on menu popover panels #701, fix: apply uniform border radius to MegaMenu panel container #702
Table (1)
- Table
- P0: Column width system is dead code — columnWidthToCSS exported/tested/documented but never called → PR fix(Table): remove dead code — columnWidthToCSS and _lastBodyRowStyles #797
- P0:
Selection plugin breaks row memoization — config recreates every render— tracked in [bug] useXDSTableSelection overrendering #195 - P0: idKey with missing property silently breaks — all rows get key "undefined"
- P1:
thead and tbody missing xdsClassName— eliminated: structural elements, don't need xdsClassName - P1:
Selection checkbox labels hardcoded English— eliminated: selection issues tracked separately - P1: No aria-sort on sortable headers
- P1:
Selection checkboxes have no visible label text— eliminated: selection issues tracked separately - P1:
Hardcoded '1px' border widths (5 instances)— hardcoded border width is fine - P2: '36px' selection column hardcoded
- P1:
No sorting plugin exists— feature request, not hardening - P1: _lastBodyRowStyles dead code → PR fix(Layout): forward ref and remove dead code #796
- P2:
No sticky header, no virtual scrolling— feature requests, not hardening - P2: columnWidthToCSS tested but dead code → PR fix(Table): remove dead code — columnWidthToCSS and _lastBodyRowStyles #797
- P2: Doc lists xstyle prop that doesn't exist
- P2: Plugin order depends on Object.values() — not stable
- P2: defaultCellRenderer shows [object Object]
- P2: Column auto-generation uses raw keys as headers
- P2: Test gaps: column changes, empty columns, hover radius
Layout & Containers (4)
- Center ✅ eliminated — CSS output tests are brittle
- P2:
No test for axis="horizontal" vs "vertical"— eliminated - P2:
No test for combined width+height— eliminated
- P2:
- Grid ✅ PR fix(Grid): guard columns={0} and add edge case tests #720
- P1: columns={0} not guarded — already safe, added edge case tests → PR fix(Grid): guard columns={0} and add edge case tests #720
- P2: No test for width/height, columns={0}, minChildWidth with columnGap → PR fix(Grid): guard columns={0} and add edge case tests #720
- Section ✅ PR fix(Section): add xstyle prop and comprehensive tests #721
- P1: Missing XDSBaseProps (no xstyle) → PR fix(Section): add xstyle prop and comprehensive tests #721
- P1:
Heading level not configurable (always inferred)— eliminated: Section does not render headings, children do - P1:
Border width 1px hardcoded— standard border, no border-width token, overridable via xstyle - P2: Zero tests → PR fix(Section): add xstyle prop and comprehensive tests #721
- Stack ✅ eliminated — behavior tests exist, legacy tokens to be removed separately
- P2:
No tests verify CSS output— eliminated: CSS output tests are brittle - P2:
No test for hAlign/vAlign axis mapping— eliminated: behavior tests already exist - P2:
No test for legacy string gap tokens— eliminated: legacy string tokens should be removed, not tested - P2:
No test for XDSStackItem composition— eliminated - P2:
No test for flexDirection/gap— eliminated: CSS output tests are brittle
- P2:
Display & Data (19)
- AspectRatio ✅ No findings from deep analysis
- Avatar
- P1: AvatarStatusDot has optional label but no role on div
- P2: Zero test coverage
- Badge 🔄
- Hardcoded height → PR fix(Badge): replace hardcoded height with spacing token #653
- Label prop for API consistency → PR feat(Badge): add label prop for API consistency #709
-
P1: Dot mode renders empty span with no accessible label— eliminated: dot mode removed -
P1: Dot mode is vertically stretched — height from base style without matching width— eliminated: dot mode removed - P1: Missing non-semantic color variants (blue, cyan, green, orange, pink, purple, red, teal, yellow) — only semantic variants exist today. Needed for categorization/tagging. Ref: XDSBadge: Add non-semantic color variants and darken neutral grey #244
- Banner
- P1: Missing aria-controls on collapse toggle
- P2: No test for collapsible animation
- Card
- P1:
No semantic role on interactive card— eliminated: Card is not interactive, it's a container - P1:
Scrollable areas not keyboard-accessible— eliminated: niche edge case on fixed-height cards, not a component bug - P2:
Only 2 tests total— eliminated: Card is a simple container, 2 tests cover its behavior
- P1:
- Collapsible 🔄
- Hardcoded fontSize/transition → PR fix(Collapsible): replace hardcoded fontSize and transition with theme tokens #677
- P1: Missing XDSBaseProps
- P1: Missing aria-controls on trigger
- P1: Trigger button zero hover feedback
- Divider
- P2:
Hardcoded 1px border width— xstyle override; no border-width token in system
- P2:
- EmptyState
- P1: Hardcoded h3 heading level
- P2:
360px maxWidth hardcoded— overridable via xstyle
- Icon ✅ No findings from deep analysis
- Kbd ✅ PR fix(Kbd): platform-aware mod key display #722
- P1: Always shows macOS ⌘, no platform detection → PR fix(Kbd): platform-aware mod key display #722
- Link
- P1: No "opens in new tab" screen reader indicator
- P2: No external link test
- List
- P0: aria-selected without listbox role — ARIA spec violation
- P1: Hover radius should use --radius-content
- P2: No keyboard nav test
- Pagination
- P1: No aria-live for page changes
- P1: Dot buttons zero hover feedback
- P2:
Hardcoded 8px/24px/32px— overridable via xstyle - P2: No edge case tests
- ProgressBar
- P2:
Hardcoded 4px/8px/12px heights— size tier definitions (sm/md/lg), overridable via xstyle
- P2:
- Skeleton
- P1: No ARIA attributes
- P1: No prefers-reduced-motion
- P2: Zero tests (radius cleanup done by PR feat: radius codemods & skeleton cleanup for v0.0.5 #690)
- Spinner
- P0: 4 hardcoded colors in canvas — not themeable
- P1: Does not extend XDSBaseProps — aria-label="Loading" hardcoded, not overridable because Spinner lacks XDSBaseProps + rest spread
- P1: No prefers-reduced-motion
- StatusDot
- P1: Color-only distinction (WCAG 1.4.1 violation) —
⚠️ needs design decision (shape differentiation) - P2:
Hardcoded 8px/10px dimensions— size tier definitions (sm/md), overridable via xstyle
- P1: Color-only distinction (WCAG 1.4.1 violation) —
- Text
- P1: Truncation tooltip uses title attribute (inaccessible to keyboard/touch)
- P1: useTruncation zero tests
- P2: No multi-line clamp test
- Token
- P1: href + isDisabled doesn't remove href — Enter still navigates
- P1: Remove button no hover feedback
- P2: No test for href+onRemove combo
- P2: No size="sm" test
Cross-cutting (fixed): Animation durations tokenized via PR #684. Skeleton radius cleanup via PR #690.
Metadata
Metadata
Assignees
Labels
hardeningComponent hardening and quality sweep
Activity
fix(Grid): guard columns={0} and add edge case tests
fix(Section): add xstyle prop and comprehensive tests
fix(Kbd): add platform detection for mod key
fix(Kbd): add platform detection for mod key (#722)
fix(Grid): guard columns={0} and add edge case tests (#720)
fix(Section): add xstyle prop and comprehensive tests (#721)
fix(EmptyState): configurable heading level and description maxWidth
fix(Badge): fix dot mode visual stretch and add a11y label
cixzhang commentedon Mar 21, 2026
Hardening is about making existing components match our standards. It is NOT about adding new features or expanding API surface.
What hardening fixes look like:
XDSBasePropsalready provides allaria-*throughHTMLAttributesisRequired,isLoading), add it to match the family contract. Do not invent new propsxstyle, it's fine as-isRules:
xstyle. That's whatxstyleis for.isBusyas a public prop.isLoadingis the public prop,isBusyis internal (isLoading || optimisticValue !== value). One pattern, enforced consistently.onShow/onHide. Visibility callbacks useonOpenChange(isOpen: boolean)per API conventions.useId.lightDismiss— these are RFCs, not hardening.When in doubt:
If a finding is ambiguous — could be a bug fix OR a new feature — flag it for human review. Don't guess. Tag the assignee and describe the ambiguity.
fix(Kbd): add platform detection for mod key (#722)
fix(Grid): guard columns={0} and add edge case tests (#720)
fix(Section): add xstyle prop and comprehensive tests (#721)
fix(Kbd): add platform detection for mod key (#722)
fix(Grid): guard columns={0} and add edge case tests (#720)
fix(Section): add xstyle prop and comprehensive tests (#721)
fix(Kbd): add platform detection for mod key (#722)
fix(Grid): guard columns={0} and add edge case tests (#720)
fix(Section): add xstyle prop and comprehensive tests (#721)