@astryxdesign/core 0.7.2-canary.fdd384f → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/CHANGELOG.md +156 -2
  2. package/README.md +4 -4
  3. package/dist/Avatar/Avatar.d.ts.map +1 -1
  4. package/dist/Avatar/Avatar.js +8 -1
  5. package/dist/AvatarGroup/AvatarGroupOverflow.d.ts.map +1 -1
  6. package/dist/AvatarGroup/AvatarGroupOverflow.js +4 -1
  7. package/dist/Chat/ChatLayoutScrollButton.d.ts.map +1 -1
  8. package/dist/Chat/ChatLayoutScrollButton.js +1 -0
  9. package/dist/CheckboxList/CheckboxList.d.ts +1 -1
  10. package/dist/CheckboxList/CheckboxList.d.ts.map +1 -1
  11. package/dist/CheckboxList/CheckboxList.js +6 -2
  12. package/dist/DropdownMenu/DropdownMenu.d.ts +1 -1
  13. package/dist/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  14. package/dist/DropdownMenu/DropdownMenu.js +38 -110
  15. package/dist/DropdownMenu/DropdownMenuCheckboxItem.d.ts +1 -1
  16. package/dist/DropdownMenu/DropdownMenuGroup.d.ts +6 -4
  17. package/dist/DropdownMenu/DropdownMenuGroup.d.ts.map +1 -1
  18. package/dist/DropdownMenu/DropdownMenuGroup.js +4 -3
  19. package/dist/DropdownMenu/DropdownMenuRadioItem.d.ts +1 -1
  20. package/dist/DropdownMenu/lazyMenuBottomSheet.d.ts +24 -0
  21. package/dist/DropdownMenu/lazyMenuBottomSheet.d.ts.map +1 -0
  22. package/dist/DropdownMenu/lazyMenuBottomSheet.js +46 -0
  23. package/dist/DropdownMenu/menuRegionStops.d.ts +38 -0
  24. package/dist/DropdownMenu/menuRegionStops.d.ts.map +1 -0
  25. package/dist/DropdownMenu/menuRegionStops.js +131 -0
  26. package/dist/FormLayout/FormLayout.d.ts +5 -4
  27. package/dist/FormLayout/FormLayout.d.ts.map +1 -1
  28. package/dist/FormLayout/FormLayout.js +1 -1
  29. package/dist/FormLayout/FormLayoutContext.d.ts +3 -3
  30. package/dist/FormLayout/FormLayoutContext.js +3 -3
  31. package/dist/Grid/Grid.d.ts +8 -7
  32. package/dist/Grid/Grid.d.ts.map +1 -1
  33. package/dist/Grid/Grid.js +5 -4
  34. package/dist/Grid/GridSpan.d.ts +1 -1
  35. package/dist/Markdown/parser.d.ts.map +1 -1
  36. package/dist/Markdown/parser.js +8 -2
  37. package/dist/Markdown/plugins/headingLinks.d.ts.map +1 -1
  38. package/dist/Markdown/plugins/headingLinks.js +9 -1
  39. package/dist/PowerSearch/PowerSearch.d.ts.map +1 -1
  40. package/dist/PowerSearch/PowerSearch.js +5 -0
  41. package/dist/PowerSearch/PowerSearchValueEditor.d.ts.map +1 -1
  42. package/dist/PowerSearch/PowerSearchValueEditor.js +45 -11
  43. package/dist/SideNav/SideNavItem.d.ts.map +1 -1
  44. package/dist/SideNav/SideNavItem.js +6 -2
  45. package/dist/Token/Token.js +1 -1
  46. package/dist/TopNav/TopNavMegaMenu.js +2 -0
  47. package/dist/TopNav/TopNavMenu.d.ts.map +1 -1
  48. package/dist/TopNav/TopNavMenu.js +2 -0
  49. package/dist/astryx.css +1 -1
  50. package/dist/reset.a11y.chromium.spec.js +50 -1
  51. package/docs.mjs +4 -4
  52. package/package.json +4 -4
  53. package/scripts/agent-doc-state.mjs +66 -6
  54. package/scripts/postinstall.mjs +44 -3
  55. package/src/Avatar/Avatar.tsx +11 -2
  56. package/src/AvatarGroup/AvatarGroupOverflow.test.tsx +24 -1
  57. package/src/AvatarGroup/AvatarGroupOverflow.tsx +2 -0
  58. package/src/Chat/ChatLayoutScrollButton.test.tsx +13 -0
  59. package/src/Chat/ChatLayoutScrollButton.tsx +4 -2
  60. package/src/Chat/__tests__/ChatLayoutScrollButton.a11y.chromium.spec.ts +64 -19
  61. package/src/CheckboxList/CheckboxList.fr10.test.tsx +29 -2
  62. package/src/CheckboxList/CheckboxList.tsx +4 -1
  63. package/src/Code/Code.doc.mjs +1 -0
  64. package/src/CommandPalette/CommandPalette.doc.mjs +2 -0
  65. package/src/ContextMenu/ContextMenu.test.tsx +12 -2
  66. package/src/Drawer/Drawer.doc.mjs +1 -0
  67. package/src/DropdownMenu/DropdownMenu.ssr.test.tsx +57 -0
  68. package/src/DropdownMenu/DropdownMenu.test.tsx +17 -5
  69. package/src/DropdownMenu/DropdownMenu.tsx +43 -142
  70. package/src/DropdownMenu/DropdownMenuCheckboxItem.doc.mjs +1 -1
  71. package/src/DropdownMenu/DropdownMenuCheckboxItem.tsx +1 -1
  72. package/src/DropdownMenu/DropdownMenuGroup.doc.mjs +169 -10
  73. package/src/DropdownMenu/DropdownMenuGroup.tsx +6 -4
  74. package/src/DropdownMenu/DropdownMenuLazySheet.test.tsx +126 -0
  75. package/src/DropdownMenu/DropdownMenuRadioItem.doc.mjs +1 -1
  76. package/src/DropdownMenu/DropdownMenuRadioItem.tsx +1 -1
  77. package/src/DropdownMenu/__tests__/DropdownMenuGroupAudit.a11y.chromium.spec.ts +334 -0
  78. package/src/DropdownMenu/__tests__/warmMenuBottomSheet.tsx +43 -0
  79. package/src/DropdownMenu/lazyMenuBottomSheet.ts +71 -0
  80. package/src/DropdownMenu/menuRegionStops.ts +167 -0
  81. package/src/Field/FieldLabel.doc.mjs +133 -26
  82. package/src/Field/FieldLabel.spec.md +172 -0
  83. package/src/Field/__tests__/FieldLabelAudit.a11y.chromium.spec.ts +296 -0
  84. package/src/FormLayout/FormLayout.doc.mjs +6 -3
  85. package/src/FormLayout/FormLayout.spec.md +192 -0
  86. package/src/FormLayout/FormLayout.test.tsx +15 -0
  87. package/src/FormLayout/FormLayout.tsx +7 -6
  88. package/src/FormLayout/FormLayoutContext.ts +3 -3
  89. package/src/Grid/Grid.doc.mjs +7 -1
  90. package/src/Grid/Grid.spec.md +93 -113
  91. package/src/Grid/Grid.test.tsx +22 -0
  92. package/src/Grid/Grid.tsx +10 -9
  93. package/src/Grid/GridSpan.doc.mjs +3 -3
  94. package/src/Grid/GridSpan.tsx +1 -1
  95. package/src/Icon/Icon.doc.mjs +36 -0
  96. package/src/Indicator/Indicator.doc.mjs +3 -3
  97. package/src/Layout/LayoutHeader.doc.mjs +5 -0
  98. package/src/Markdown/parser.ts +8 -2
  99. package/src/Markdown/plugins/headingLinks.ts +9 -1
  100. package/src/MetadataList/MetadataList.doc.mjs +1 -1
  101. package/src/MoreMenu/MoreMenu.test.tsx +5 -1
  102. package/src/PowerSearch/PowerSearch.test.tsx +62 -0
  103. package/src/PowerSearch/PowerSearch.tsx +9 -0
  104. package/src/PowerSearch/PowerSearchValueEditor.test.tsx +71 -0
  105. package/src/PowerSearch/PowerSearchValueEditor.tsx +45 -0
  106. package/src/ProgressBar/ProgressBar.doc.mjs +1 -0
  107. package/src/Resizable/useResizable.doc.mjs +2 -0
  108. package/src/ScrollableArea/ScrollableArea.doc.mjs +1 -1
  109. package/src/SideNav/SideNav.spec.md +227 -0
  110. package/src/SideNav/SideNav.test.tsx +41 -0
  111. package/src/SideNav/SideNavItem.tsx +5 -2
  112. package/src/Spinner/Spinner.doc.mjs +1 -1
  113. package/src/Table/Table.spec.md +6 -1
  114. package/src/Table/plugins/activation/useTableActivation.spec.md +254 -0
  115. package/src/Timestamp/Timestamp.doc.mjs +1 -1
  116. package/src/ToggleButton/ToggleButtonGroup.doc.mjs +4 -0
  117. package/src/Token/Token.tsx +1 -1
  118. package/src/Token/__tests__/TokenRemoveTarget.a11y.chromium.spec.ts +86 -0
  119. package/src/Toolbar/Toolbar.test.tsx +0 -8
  120. package/src/Toolbar/__tests__/Toolbar.a11y.chromium.spec.ts +163 -0
  121. package/src/Toolbar/__tests__/Toolbar.a11y.renders.tsx +63 -0
  122. package/src/Toolbar/__tests__/Toolbar.a11y.states.ts +142 -0
  123. package/src/Toolbar/__tests__/Toolbar.a11y.test.tsx +126 -0
  124. package/src/TopNav/TopNavMegaMenu.test.tsx +25 -0
  125. package/src/TopNav/TopNavMegaMenu.tsx +2 -0
  126. package/src/TopNav/TopNavMenu.test.tsx +27 -1
  127. package/src/TopNav/TopNavMenu.tsx +2 -0
  128. package/src/postinstall.test.mjs +79 -0
  129. package/src/reset.a11y.chromium.spec.ts +52 -1
  130. package/src/reset.css +9 -0
  131. package/src/reset.test.ts +11 -0
  132. package/src/unicodePropertyEscapes.source-build.test.mjs +69 -0
@@ -0,0 +1,227 @@
1
+ ---
2
+ schema_version: 3
3
+ template_version: 7
4
+ kind: component
5
+ id: component:SideNav
6
+ authority: current
7
+ archive_reason: null
8
+ superseded_by: null
9
+ approved_by: cixzhang
10
+ approved_at: 2026-10-16
11
+ owners: [cixzhang]
12
+ review_triggers: [layout, behavior, accessibility]
13
+ verified_by:
14
+ [
15
+ packages/core/src/SideNav/SideNav.test.tsx,
16
+ apps/storybook/stories/SideNav.stories.tsx,
17
+ scripts/check-knowledge.mjs,
18
+ ]
19
+ modules: []
20
+ families: [family:navigation-destinations]
21
+ design_specs: []
22
+ architecture:
23
+ [
24
+ architecture:component-theming-surface,
25
+ architecture:interaction-modality,
26
+ architecture:internationalization,
27
+ architecture:public-component-api,
28
+ ]
29
+ contributing: []
30
+ system_specs: [spec:AST-017/FR3]
31
+ ---
32
+
33
+ # SideNav component contract
34
+
35
+ <!-- Describe the system, not the project: present tense, what it does. No proposals, history, pull requests, or research in the record; see docs/contributing/spec-writing.md and report its rubric results in the pull request. -->
36
+
37
+ This record governs how nested SideNavItem rows are drawn: their width, where
38
+ their nesting indent sits, and what the indent area does. It covers SideNav,
39
+ SideNavSection, and SideNavItem only as far as that geometry depends on them.
40
+ SideNavItem's link and destination safety is governed by
41
+ `family:navigation-destinations`; other SideNav behavior remains described by
42
+ its source, tests, and consumer docs until a record claims it.
43
+
44
+ ## Contract at a glance
45
+
46
+ | Area | Contract |
47
+ | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
48
+ | Public contract | None. No prop, value, default, or theme target changes. |
49
+ | Behavior | Every SideNavItem row spans the full width of its nav list at any depth. Depth shows as inline-start indent inside the row: one `--spacing-6` step per level, added to the row's own padding. |
50
+ | End-user impact | A person scanning a nested nav sees hover, pressed, selected, and focus fills that line up with the top-level rows, and can click a nested row's indent to activate it, as they would its label. |
51
+ | Builder impact | No new choice or prop. Icons and labels keep their per-depth position. Content placed directly inside a SideNavItem that is not itself a SideNavItem sits at the nav list edge, because the nested group adds no inset; no supported setting insets it. |
52
+ | Compatibility/readiness | Nonbreaking change of visual direction (`spec:AST-017/FR3`). The collapsed rail and top-level rows are unchanged. Authority is current; implementation may be staged. |
53
+ | Review checks | Reject a nested row narrower than a top-level row, an indent drawn outside the row, an indent area that shows feedback but does not activate, a clipped focus ring, or an indent in the flyout's top level. |
54
+ | Governing rules | DD1 and FR3–FR5 below; `family:navigation-destinations` for destinations; `architecture:internationalization` for logical direction. |
55
+
56
+ This table is a review projection; the body below is authoritative.
57
+
58
+ ## Intent
59
+
60
+ SideNav is the vertical navigation region of an app. SideNavItem rows can nest
61
+ to show a hierarchy of destinations. Nesting must read as one list of equal
62
+ rows, so the eye compares labels and states across depths rather than seeing a
63
+ second, narrower kind of row. SideNav owns this because only SideNavItem knows
64
+ a row's depth and its row padding.
65
+
66
+ ## Compatibility and migration
67
+
68
+ - Released default preserved: `no`; nested rows change from inset to full width.
69
+ Top-level rows and the collapsed rail are unchanged.
70
+ - Compatibility class: nonbreaking appearance change of visual direction under
71
+ `spec:AST-017/FR3`; no public API, accepted input, or accessibility semantic
72
+ changes.
73
+ - Controlled/uncontrolled behavior: unchanged.
74
+ - Migration decision: none; there is no supported way to keep the inset look.
75
+
76
+ Consumer migration instructions belong in consumer docs and release notes.
77
+
78
+ ## Ownership boundary
79
+
80
+ **Owns**
81
+
82
+ - The width of every expanded SideNavItem row, at every depth.
83
+ - Where a nested row's indent sits, its step, and how it adds to the row's
84
+ padding.
85
+ - What the indent area paints and what a click on it does.
86
+ - Whether the nested group clips its rows.
87
+
88
+ **Does not own / non-goals**
89
+
90
+ - Destination acceptance, blocking, and router handoff — owned by
91
+ `family:navigation-destinations`.
92
+ - The collapsed item's tooltip and how it attaches — outside this record.
93
+ - Exact fill colors, radius, row height, and row padding per size — owned by
94
+ the shared nav item styles and the `side-nav-item` theme target.
95
+ - Layout of caller content placed directly inside a SideNavItem that is not a
96
+ SideNavItem — owned by the product callsite.
97
+ - SideNavHeading, SideNavCollapseButton, and the SideNav header, footer, and
98
+ resize zones.
99
+
100
+ ## Public concepts
101
+
102
+ | Concept | Closed values or states | Meaning | Availability by variant/orientation/state | Default | Owner | Stability | Invalid-value behavior |
103
+ | ------------- | ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------- | ------- | ------------------- | --------- | ---------------------- |
104
+ | Nesting depth | `0`, `1`, `2`, … (derived, not a prop) | The number of SideNavItem ancestors of a row within the same list. A collapsed rail's flyout restarts at 0. | Expanded rail; mobile drawer; flyout | `0` | `component:SideNav` | stable | Not caller-settable |
105
+ | Row size | `sm`, `md`, `lg` (existing SideNavItem `size`) | Sets the row's height and base inline padding; the indent adds to that padding. | Every row | `md` | `component:SideNav` | stable | Rejected by the type |
106
+
107
+ ## Behavioral and layout contract
108
+
109
+ | ID | Invariant | Basis | Draft review state |
110
+ | --- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- | -------------------------------------------- |
111
+ | FR1 | SideNav renders its navigation children in a scrollable list, which may be grouped by SideNavSection. A SideNavItem with children renders them, after its own row, in a group labelled by the parent's label; unless `collapsible` is `false`, the group expands and collapses and is hidden from assistive technology and inert while collapsed. | Current source, docs, and tests | Current behavior |
112
+ | FR2 | In a collapsed rail, a SideNavItem without an icon is not rendered; a leaf item renders icon-only, named by a non-blank caller `aria-label` or else its label; an item with children renders an icon-only trigger that opens a flyout listing its children as the flyout's top level. | Current source, docs, and tests | Current behavior |
113
+ | FR3 | In an expanded rail, in a flyout, and in the mobile navigation drawer, every SideNavItem row MUST span the full inline size of its list at any depth. A row at depth `n` MUST start its content `n` × `--spacing-6` beyond the row's own inline-start padding for its size, inside the row; the nested group MUST add no inset. A flyout's top level is depth 0. | `component:SideNav/DEC-1` | Settled intent; implementation may be staged |
114
+ | FR4 | The indent area MUST be part of the row's target: a click there, including a modified or middle click on a link row, does what the same click on the row's primary element does. When the row also carries an independent expand toggle or `actions`, the indent belongs to the primary link or button, and the toggle and actions keep their own activation at the row's trailing edge. | `component:SideNav/DEC-1`; `family:navigation-destinations` | Settled intent; implementation may be staged |
115
+ | FR5 | An expanded nested group MUST NOT clip its rows once it has finished opening, so a nested row's focus ring paints in full. The group MAY clip while collapsed and while it opens or closes. | `component:SideNav/DEC-1` | Settled intent; implementation may be staged |
116
+
117
+ ### Allowed variation
118
+
119
+ - **AV1 — Depth and size.** Any depth and any row size may appear; FR3 holds for
120
+ each row from its own size's padding.
121
+ - **AV2 — Theme tokens.** A theme that changes `--spacing-6` or the row padding
122
+ tokens changes the step or the base with them.
123
+ - **AV3 — Row implementation.** The element that carries the indent may change
124
+ while the painted row stays full width and the indent stays clickable.
125
+
126
+ ### Representative states
127
+
128
+ | State | Required invariant | Allowed variation |
129
+ | ------------------------------------- | ----------------------------------------------------------------------------------------- | ------------------------------- |
130
+ | Depth 1–3, `md` | Row width equals a top-level row's; content starts one step further in per level. | Labels, icons, selection. |
131
+ | `sm` and `lg` nested rows | Indent adds to that size's base padding. | Row height by size. |
132
+ | Nested row with own link and children | Full-width row; indent is part of the link; the expand toggle stays at the trailing edge. | Collapsed or expanded children. |
133
+ | Nested row with `actions` | Full-width row; indent is part of the primary element; actions stay at the trailing edge. | Action content. |
134
+ | Keyboard focus on a nested row | The focus ring paints in full around the row. | Ring style by theme. |
135
+ | Right-to-left | Indent sits at the inline start (right); same widths. | Writing direction. |
136
+ | Collapsed rail | Icon-only items; the flyout's top level has no indent; deeper flyout levels indent. | Flyout content. |
137
+
138
+ ### Transformation and precedence order
139
+
140
+ - **ORD1 — Row inline-start padding.** The row's size padding, then plus depth ×
141
+ `--spacing-6`. A caller's `style` on a nested item composes after the indent in the
142
+ shared order (`architecture:public-component-api`): properties the caller does
143
+ not set keep the indent, and a caller-set inline-start padding replaces it.
144
+
145
+ ### Performance and resources
146
+
147
+ - **PR1 — No measurement.** Depth and indent come from composition; no
148
+ measurement, observer, or extra render pass is added.
149
+
150
+ ## Accessibility contract
151
+
152
+ - **AR1 — Presentation only.** Width and indent MUST NOT change any row's role,
153
+ accessible name, state, DOM order, or tab order.
154
+ - **AR2 — Visible focus.** A nested row's focus indicator MUST paint in full at
155
+ every depth (FR5).
156
+
157
+ ## Design relationships
158
+
159
+ | Anatomy or state | Design requirement | Representation authority | Hierarchy role | Component contract |
160
+ | ---------------- | ------------------------------------------------------------------ | ------------------------ | -------------- | ------------------ |
161
+ | Navigation items | Nested rows read as equal rows of one list; depth reads as indent. | Owner choice (DD1) | Prominent | FR3–FR5 |
162
+
163
+ ### Design decisions
164
+
165
+ <!-- design-decisions:v1 -->
166
+
167
+ | ID | Decision | Intent or reason | Applies to | Allowed variation |
168
+ | --- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
169
+ | DD1 | Every SideNavItem row spans the full width of its nav list at any depth; nesting shows as indent inside the row, ahead of its content. Hover, pressed, selected, and focus paint the whole row, indent included. | Fills line up across depths, so the nav reads as one list of equal rows while labels keep their per-level alignment; the indent belongs to the row's primary target rather than sitting beside it as a gap. | SideNavItem rows at every depth, at rest and through hover, pressed, selected, disabled, and focus | Themes restyle fill, radius, and padding through the `side-nav-item` target; the step follows `--spacing-6`. |
170
+
171
+ ## Family and system relationships
172
+
173
+ - `family:navigation-destinations` owns the accept/block result for a
174
+ SideNavItem `href`; the indent area activates the same destination the primary
175
+ element does (FR4).
176
+ - `architecture:internationalization` owns logical direction; the indent is
177
+ inline-start and mirrors under right-to-left.
178
+ - `architecture:interaction-modality` owns shared focus-visible behavior; FR5
179
+ keeps the ring visible at every depth.
180
+ - `architecture:component-theming-surface` owns the `side-nav-item` target;
181
+ this record adds no target or state.
182
+ - `architecture:public-component-api` owns how caller styling inputs compose;
183
+ ORD1 places the indent before a caller's `style`.
184
+ - `spec:AST-017/FR3` classifies the change as a nonbreaking change of visual
185
+ direction.
186
+ - `component:TreeList` DD1–DD3 record the same row geometry for TreeList. They
187
+ are precedent, not authority here; each component owns its own rows.
188
+
189
+ ## Verification map
190
+
191
+ | Contract | Verification | Representative states | Mutation or failure expectation | Audit section |
192
+ | --------- | ------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
193
+ | FR1, FR2 | `SideNav.test.tsx` nesting, collapsible, and collapsed-rail suites | Nested, collapsible, collapsed rail, flyout | Removing the labelled group, its collapsed inert state, or the collapsed icon-only and flyout paths fails. | `audit:SideNav/anatomy` |
194
+ | FR3, ORD1 | Focused `SideNav.test.tsx` indent coverage, required with implementation | Depth 1 and 2; `sm` and `md`; split and actions rows; caller `style`; flyout | A group inset, a missing or wrong indent, a dropped caller `style`, an indent that overrides a caller-set inline-start padding, or an indented flyout top level fails. | `audit:SideNav/layout` |
195
+ | FR3, DD1 | Real-browser geometry over the SideNav nested stories | Depths 1–3; `sm`, `md`, `lg`; light and dark; right-to-left; mobile drawer | A nested row's box narrower than a top-level row's, or a label moved from its per-depth position, fails. | `audit:SideNav/layout` |
196
+ | FR4 | Real-browser click in the indent area of plain, split, and actions rows | Link and button rows; plain, modified, and middle clicks; nested rows with toggle and actions | A click in the indent that does nothing or differs from the same click on the primary element, or a toggle or action that activates the row, fails. | `audit:SideNav/behavior` |
197
+ | FR5, AR2 | `SideNav.test.tsx` group clipping case and real-browser keyboard focus on nested rows | Only-child and last nested rows; after opening; collapsed | A focus ring cut at any edge of an expanded group, or an expanded group that still clips, fails. | `audit:SideNav/a11y` |
198
+ | FR2, FR3 | Real-browser collapsed rail and flyout | Collapsed rail with nested children | Any change to the collapsed rail, or an indent on the flyout's top level, fails. | `audit:SideNav/layout` |
199
+ | AR1 | Accessibility-tree comparison of nested rows | Plain, split, and actions rows | Any change in role, name, state, or order fails. | `audit:SideNav/a11y` |
200
+
201
+ ## Decision log
202
+
203
+ <!-- Record the boundary or requirement, not how it was reached. A rejected alternative is at most one line here, kept only when it is consequential and likely to recur. -->
204
+
205
+ ### DEC-1 — Nested rows are full width; depth is indent inside the row
206
+
207
+ **Reference:** `component:SideNav/DEC-1`
208
+ **Decider:** cixzhang, 2026-10-16
209
+
210
+ A nested row that starts at its indent paints its fills from a different edge
211
+ than the rows above it, so it reads as a different, narrower component. A row that
212
+ spans the full width with its indent inside lines up every fill and keeps each
213
+ label at its per-depth position. The indent is part of the row's primary
214
+ target, so it acts as well as lights up. Full-width rows reach the nested group's
215
+ edges, so an open group must not clip them, or their focus ring is cut off.
216
+
217
+ Rejected: indenting the nested group from outside the rows, because fills then
218
+ start at a different edge per depth.
219
+
220
+ ## Open questions
221
+
222
+ None.
223
+
224
+ ## Content boundary
225
+
226
+ This file does not duplicate consumer prop tables/examples, current audit
227
+ results, implementation steps, or family/system rules. It links to their owners.
@@ -928,6 +928,47 @@ describe('SideNavItem', () => {
928
928
  expect(indentOf(security)).toBe('calc(1 * var(--spacing-6))');
929
929
  });
930
930
 
931
+ it("keeps a caller's className on the row element", () => {
932
+ render(
933
+ <SideNavItem label="Settings">
934
+ <SideNavItem
935
+ label="General"
936
+ href="/settings/general"
937
+ className="caller-row"
938
+ />
939
+ <SideNavItem
940
+ label="Security"
941
+ href="/settings/security"
942
+ className="caller-row">
943
+ <SideNavItem label="Keys" href="/settings/security/keys" />
944
+ </SideNavItem>
945
+ </SideNavItem>,
946
+ );
947
+ // Ordinary row: the link is the row, and the caller's class sits beside
948
+ // the row's own classes instead of being replaced by them.
949
+ const general = screen.getByRole('link', {name: 'General'});
950
+ expect(general).toHaveClass('caller-row');
951
+ expect(general).toHaveClass('astryx-side-nav-item');
952
+ // Split row: the class lands on the primary link, as `style` does.
953
+ expect(screen.getByRole('link', {name: 'Security'})).toHaveClass(
954
+ 'caller-row',
955
+ );
956
+ });
957
+
958
+ it("keeps a caller's className on a collapsed rail item", () => {
959
+ render(
960
+ <SideNav collapsible={{isCollapsed: true, hasButton: false}}>
961
+ <SideNavItem
962
+ label="Home"
963
+ href="/"
964
+ icon="calendar"
965
+ className="caller-row"
966
+ />
967
+ </SideNav>,
968
+ );
969
+ expect(screen.getByRole('link', {name: 'Home'})).toHaveClass('caller-row');
970
+ });
971
+
931
972
  it("lets a caller's inline-start padding replace the indent", () => {
932
973
  // The caller's `style` composes after the indent: a caller-set
933
974
  // inline-start padding is an inline declaration, so it wins over the
@@ -634,6 +634,8 @@ export function SideNavItem({
634
634
  isSelected && navItemStyles.selected,
635
635
  isDisabled && navItemStyles.disabled,
636
636
  ),
637
+ // Spread after `rest`, so keep the caller's class beside these.
638
+ rest.className,
637
639
  ),
638
640
  ...pressable,
639
641
  };
@@ -752,8 +754,9 @@ export function SideNavItem({
752
754
 
753
755
  // The indent is a runtime value, so it reaches the element as an inline
754
756
  // style. These props are spread after `rest`, so fold the caller's `style`
755
- // back in (caller wins) rather than letting the indent replace it.
756
- const callerStyle = {style: rest.style};
757
+ // back in (caller wins) rather than letting the indent replace it, and the
758
+ // caller's `className` beside the row's own classes.
759
+ const callerStyle = {className: rest.className, style: rest.style};
757
760
 
758
761
  // Three shapes of the same row appearance:
759
762
  // - `rowProps` — split-action path (toggle, no actions): presentational
@@ -6,7 +6,7 @@ export const docs = {
6
6
  name: 'Spinner',
7
7
  displayName: 'Spinner',
8
8
  category: 'Feedback & Status',
9
- keywords: ["spinner","loader","loading","circular","progress","spin","activity","busy","indeterminate"],
9
+ keywords: ["spinner","loader","loading","circular","progress","spin","activity","busy","indeterminate","circularprogress"],
10
10
  props: [
11
11
  {
12
12
  name: 'size',
@@ -24,7 +24,12 @@ verified_by:
24
24
  packages/core/src/theme/themingTargets.test.ts,
25
25
  scripts/check-knowledge.mjs,
26
26
  ]
27
- modules: [module:Table/useTableRowStatus, module:Table/useTableColumnResize]
27
+ modules:
28
+ [
29
+ module:Table/useTableActivation,
30
+ module:Table/useTableRowStatus,
31
+ module:Table/useTableColumnResize,
32
+ ]
28
33
  families: []
29
34
  design_specs: []
30
35
  architecture: