Skip to content

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

TypeScript

test(rtl): RTL coverage for Blockquote, InputGroupText and Overlay (#9309)

Cindy Zhang0fad9d2169c7
diff --git a/apps/storybook/rtl-audit/targets.json b/apps/storybook/rtl-audit/targets.json
index 3f089ec4e2..9175404398 100644
--- a/apps/storybook/rtl-audit/targets.json
+++ b/apps/storybook/rtl-audit/targets.json
@@ -632,5 +632,36 @@
"prev": ".astryx-drawer-header .astryx-heading",
"next": ".astryx-drawer-header button[aria-label=\"Close\"]"
}
+ },
+ {
+ "component": "Blockquote",
+ "storyId": "core-blockquote--default",
+ "dims": ["D8"],
+ "selectors": {
+ "subject": ".astryx-blockquote"
+ }
+ },
+ {
+ "component": "InputGroupText",
+ "storyId": "core-inputgroup--with-prefix",
+ "dims": ["D2"],
+ "selectors": {
+ "prev": ".astryx-input-group-text",
+ "next": ".astryx-text-input"
+ }
+ },
+ {
+ "component": "Overlay",
+ "storyId": "core-overlay--bottom-strip",
+ "dims": ["D4"],
+ "selectors": {
+ "overlay": ".astryx-overlay-scrim .astryx-stack",
+ "overlayRoot": ".astryx-overlay"
+ }
+ },
+ {
+ "component": "InputGroup",
+ "storyId": "core-inputgroup--with-prefix",
+ "dims": []
}
]
diff --git a/docs/specs/components/Blockquote/Blockquote.spec.md b/docs/specs/components/Blockquote/Blockquote.spec.md
index b91431bc4b..cce850fcfb 100644
--- a/docs/specs/components/Blockquote/Blockquote.spec.md
+++ b/docs/specs/components/Blockquote/Blockquote.spec.md
@@ -17,6 +17,7 @@ verified_by:
packages/core/src/theme/themingTargets.test.ts,
apps/storybook/stories/Blockquote.stories.tsx,
scripts/check-knowledge.mjs,
+ apps/storybook/rtl-audit/targets.json,
]
modules: []
families: []
@@ -147,15 +148,16 @@ The rule is a border of the root, so it shares the root's `blockquote` target.
## Verification map
-| Contract | Verification | Representative states | Mutation or failure expectation | Audit section |
-| ------------------- | ----------------------------------------------------------------------- | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------- |
-| FR1, FR4 | `Blockquote.test.tsx` render, class, ref, passthrough, and server tests | Quote only | A non-`blockquote` root, a lost target, ref, or caller prop, or a failed server render fails. The stable visual baseline `core-blockquote--default` (neutral, light and dark) returns a changed rule, padding, color, or margin for review. Gap: no unit test asserts those styles, word breaking, or the styling-input merge order. | `audit:Blockquote/behavior` |
-| FR2, AR2 | `Blockquote.test.tsx` cite tests | With and without attribution | A missing `cite` or a landmark wrapper fails. Gap: no test asserts that the attribution follows the content, and its block display, margin, type, and font style have no automated check, and the visual baseline renders no attribution. | `audit:Blockquote/a11y` |
-| FR3 | `@astryx/no-physical-properties` lint rule; `Blockquote.stories.tsx` | Right-to-left | A physical left border or padding in Blockquote's styles fails lint. Gap: no rendered right-to-left check confirms the rule sits on the right edge. | `audit:Blockquote/i18n-rtl` |
-| Theming anatomy map | `scripts/check-knowledge.mjs` | Consumer anatomy and current target | Missing, extra, or stale mappings fail repository validation. | `audit:Blockquote/theming` |
-| AR1 | `Blockquote.test.tsx` render test | Quote only | A non-`blockquote` root fails. | `audit:Blockquote/a11y` |
-| PR1 | `Blockquote.test.tsx` server-render test | Quote only | A failed server render fails. Gap: no test fails if Blockquote adds state or hooks. | `audit:Blockquote/behavior` |
-| AR1, AR2 | Accessibility-tree evidence (`spec:AST-009` FR3) | Quote with attribution | Gap: no accessibility-tree check proves the blockquote role or the absence of a landmark; the unit tests query the DOM. | `audit:Blockquote/a11y` |
+| Contract | Verification | Representative states | Mutation or failure expectation | Audit section |
+| ------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------- |
+| FR1, FR4 | `Blockquote.test.tsx` render, class, ref, passthrough, and server tests | Quote only | A non-`blockquote` root, a lost target, ref, or caller prop, or a failed server render fails. The stable visual baseline `core-blockquote--default` (neutral, light and dark) returns a changed rule, padding, color, or margin for review. Gap: no unit test asserts those styles, word breaking, or the styling-input merge order. | `audit:Blockquote/behavior` |
+| FR2, AR2 | `Blockquote.test.tsx` cite tests | With and without attribution | A missing `cite` or a landmark wrapper fails. Gap: no test asserts that the attribution follows the content, and its block display, margin, type, and font style have no automated check, and the visual baseline renders no attribution. | `audit:Blockquote/a11y` |
+| FR3 | `@astryx/no-physical-properties` lint rule; `Blockquote.stories.tsx` | Right-to-left | A physical left border or padding in Blockquote's styles fails lint. Gap: no rendered right-to-left check confirms the rule sits on the right edge. | `audit:Blockquote/i18n-rtl` |
+| Theming anatomy map | `scripts/check-knowledge.mjs` | Consumer anatomy and current target | Missing, extra, or stale mappings fail repository validation. | `audit:Blockquote/theming` |
+| AR1 | `Blockquote.test.tsx` render test | Quote only | A non-`blockquote` root fails. | `audit:Blockquote/a11y` |
+| PR1 | `Blockquote.test.tsx` server-render test | Quote only | A failed server render fails. Gap: no test fails if Blockquote adds state or hooks. | `audit:Blockquote/behavior` |
+| AR1, AR2 | Accessibility-tree evidence (`spec:AST-009` FR3) | Quote with attribution | Gap: no accessibility-tree check proves the blockquote role or the absence of a landmark; the unit tests query the DOM. | `audit:Blockquote/a11y` |
+| RTL relation | RTL audit curated D8 target (`apps/storybook/rtl-audit/targets.json`) on `Blockquote / Default` | Inline-start padding; LTR and RTL | A logical start padding that stays on the same physical side in RTL fails D8. | `audit:Blockquote/i18n-rtl` |
## Decision log
diff --git a/docs/specs/components/InputGroup/InputGroupText.spec.md b/docs/specs/components/InputGroup/InputGroupText.spec.md
index 26c04c4c90..0df4531881 100644
--- a/docs/specs/components/InputGroup/InputGroupText.spec.md
+++ b/docs/specs/components/InputGroup/InputGroupText.spec.md
@@ -10,7 +10,11 @@ approved_by: cixzhang
approved_at: 2026-10-27
owners: [cixzhang]
review_triggers: [public-api, layout, theming]
-verified_by: [packages/core/src/InputGroup/InputGroup.test.tsx]
+verified_by:
+ [
+ packages/core/src/InputGroup/InputGroup.test.tsx,
+ apps/storybook/rtl-audit/targets.json,
+ ]
modules: []
families: []
design_specs: []
@@ -120,10 +124,11 @@ No design record governs InputGroupText.
## Verification map
-| Contract | Verification | Representative states | Mutation or failure expectation | Audit section |
-| -------- | ---------------------------------------------------------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------ |
-| FR1 | `InputGroup.test.tsx` addon and prefix/suffix cases | Prefix and suffix text | Missing addon text fails. Evidence gap: no test asserts the absent role or that `ref` and DOM props reach the cell. | `audit:InputGroupText/anatomy` |
-| FR2–FR4 | Evidence gap: no assertion of cell paint, border join, or target | — | — | `audit:InputGroupText/layout` |
+| Contract | Verification | Representative states | Mutation or failure expectation | Audit section |
+| ------------ | --------------------------------------------------------------------------------------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------- |
+| FR1 | `InputGroup.test.tsx` addon and prefix/suffix cases | Prefix and suffix text | Missing addon text fails. Evidence gap: no test asserts the absent role or that `ref` and DOM props reach the cell. | `audit:InputGroupText/anatomy` |
+| FR2–FR4 | Evidence gap: no assertion of cell paint, border join, or target | — | — | `audit:InputGroupText/layout` |
+| RTL relation | RTL audit curated D2 target (`apps/storybook/rtl-audit/targets.json`) on `InputGroup / With prefix` | A text prefix before a text input; LTR and RTL | A prefix that is not at the inline start of its input fails D2. | `audit:InputGroupText/i18n-rtl` |
## Decision log
diff --git a/docs/specs/components/Overlay/Overlay.spec.md b/docs/specs/components/Overlay/Overlay.spec.md
index 075f73508b..6eefa91a91 100644
--- a/docs/specs/components/Overlay/Overlay.spec.md
+++ b/docs/specs/components/Overlay/Overlay.spec.md
@@ -14,6 +14,7 @@ verified_by:
[
packages/core/src/Overlay/Overlay.test.tsx,
apps/storybook/stories/Overlay.stories.tsx,
+ apps/storybook/rtl-audit/targets.json,
]
modules: []
families: []
@@ -202,14 +203,15 @@ Consumer migration instructions belong in consumer docs and release notes.
## Verification map
-| Contract | Verification | Representative states | Mutation or failure expectation | Audit section |
-| ----------------------------- | -------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- |
-| FR1, FR2, FR6, FR11 | `Overlay.test.tsx` region suite | Region in Overlay and `useOverlay` content; in a `bottom` Overlay; outside any Overlay; out-of-range and non-finite input; pointer and key events | Unclamped values, a region outside the scrim, a placed region in a strip or a missing warning, or a region that moves on its own fails. | `audit:Overlay/api` |
-| FR3, FR4, FR5, FR7, FR8, FR10 | Real-Chromium assertions in the Overlay region story's play function | Every preset; open sized, edge-clamped, and content-sized; resized surface; RTL; a region before a positioned control | A region off its spot by more than 0.5px, a corner that does not flip or an open region that does, the in-flow control hit at a region's center, or wrong isolation, fails. | `audit:Overlay/layout` |
-| FR9 | `Overlay.test.tsx` reveal case with a region | `isOpen={false}` | A region outside the scrim, or a closed scrim that is not inert, fails. | `audit:Overlay/api` |
-| AR1, AR2 | `Overlay.test.tsx` DOM check of the region element | Text content | Any attribute other than `class` and `style` on the region element, or text it adds, fails. | `audit:Overlay/a11y` |
-| AR3 | Region move story's play function | Arrow key and single activation on the media, LTR and RTL | ArrowRight moving a region left, or an activation that does not move the region to the activated spot, fails. | `audit:Overlay/a11y` |
-| PR1 | Source review of `OverlayRegion` | All inputs | A ref read, observer, listener, or Effect added for placement fails review. | `audit:Overlay/layout` |
+| Contract | Verification | Representative states | Mutation or failure expectation | Audit section |
+| ----------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
+| FR1, FR2, FR6, FR11 | `Overlay.test.tsx` region suite | Region in Overlay and `useOverlay` content; in a `bottom` Overlay; outside any Overlay; out-of-range and non-finite input; pointer and key events | Unclamped values, a region outside the scrim, a placed region in a strip or a missing warning, or a region that moves on its own fails. | `audit:Overlay/api` |
+| FR3, FR4, FR5, FR7, FR8, FR10 | Real-Chromium assertions in the Overlay region story's play function | Every preset; open sized, edge-clamped, and content-sized; resized surface; RTL; a region before a positioned control | A region off its spot by more than 0.5px, a corner that does not flip or an open region that does, the in-flow control hit at a region's center, or wrong isolation, fails. | `audit:Overlay/layout` |
+| FR9 | `Overlay.test.tsx` reveal case with a region | `isOpen={false}` | A region outside the scrim, or a closed scrim that is not inert, fails. | `audit:Overlay/api` |
+| AR1, AR2 | `Overlay.test.tsx` DOM check of the region element | Text content | Any attribute other than `class` and `style` on the region element, or text it adds, fails. | `audit:Overlay/a11y` |
+| AR3 | Region move story's play function | Arrow key and single activation on the media, LTR and RTL | ArrowRight moving a region left, or an activation that does not move the region to the activated spot, fails. | `audit:Overlay/a11y` |
+| PR1 | Source review of `OverlayRegion` | All inputs | A ref read, observer, listener, or Effect added for placement fails review. | `audit:Overlay/layout` |
+| RTL relation | RTL audit curated D4 target (`apps/storybook/rtl-audit/targets.json`) on `Overlay / Bottom strip` | Start-aligned scrim content; LTR and RTL | Start-aligned content that does not move to the mirrored side of its container in RTL fails D4. | `audit:Overlay/i18n-rtl` |
## Decision log