Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

test(rtl): OverflowList's D2 target pairs its first two items (#9384)

Cindy Zhang2224fa801456
diff --git a/apps/storybook/rtl-audit/targets.json b/apps/storybook/rtl-audit/targets.json
index 38d11b5bf5..6c8e61647b 100644
--- a/apps/storybook/rtl-audit/targets.json
+++ b/apps/storybook/rtl-audit/targets.json
@@ -929,8 +929,8 @@
"storyId": "core-overflowlist--default",
"dims": ["D2"],
"selectors": {
- "prev": ".astryx-overflow-list > button:first-child",
- "next": ".astryx-overflow-list button:has-text(\"more\")"
+ "prev": ".astryx-overflow-list > :nth-child(1)",
+ "next": ".astryx-overflow-list > :nth-child(2)"
}
},
{
diff --git a/docs/specs/components/OverflowList/OverflowList.spec.md b/docs/specs/components/OverflowList/OverflowList.spec.md
index 9df9811006..fbd3abcaeb 100644
--- a/docs/specs/components/OverflowList/OverflowList.spec.md
+++ b/docs/specs/components/OverflowList/OverflowList.spec.md
@@ -189,7 +189,7 @@ The hidden measurement copy is implementation structure, not consumer anatomy.
| FR6 | `OverflowList.test.tsx` ref and passthrough tests | Ref; DOM props | A ref on another element or a dropped DOM prop fails. Gap: no test covers `className`, `style`, or the `xstyle` merge order. | `audit:OverflowList/api` |
| AR2, PR1 | Source review | Collapsed items | Gap: no automated check covers keyboard reach to collapsed items or the observer lifecycle. | `audit:OverflowList/a11y` |
| Theming anatomy map | `scripts/check-knowledge.mjs` | Canonical anatomy and current target | Missing, extra, or stale mappings fail repository validation. | `audit:OverflowList/theming` |
-| RTL relation | RTL audit curated D2 target (`apps/storybook/rtl-audit/targets.json`) on `OverflowList / Default` | First item and the overflow trigger; LTR and RTL | A first item that is not at the inline start of the overflow trigger fails D2. | `audit:OverflowList/i18n-rtl` |
+| RTL relation | RTL audit curated D2 target (`apps/storybook/rtl-audit/targets.json`) on `OverflowList / Default` | The first two visible items; LTR and RTL | A first item that is not at the inline start of the second fails D2. | `audit:OverflowList/i18n-rtl` |
## Decision log