Repository navigation
fix(Markdown): keep task lists inside their column - #12295
josephfarina wants to merge 4 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
5fb44fb to
ea31401
Compare
3031f0c to
a6c5a40
Compare
There was a problem hiding this comment.
Changes requested: the fix keeps paragraph-only task lists inside their column, with checkbox and text positions unchanged, but it clips the keyboard focus ring of every read-only task checkbox.
- The flush rows put each read-only task checkbox exactly on the CheckboxList list's inline-start edge, which keeps its inline clip, so a keyboard user sees the ring's inline-start stroke cut off (left in LTR, right in RTL), where the base showed it whole; let this static, swipe-free list drop its clip the way Markdown's other lists do, or keep the ring inside it, and add a focused-checkbox case to the Chromium bounds spec.
Everything else checks out: the overreach, the 383/398px page widths and the unchanged positions all reproduce, and the new unit case fails before the change and passes after it.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Paragraph-only task lists reached 8px past both column edges: verified (Chromium list box 8px past each edge on the base).
- In a full-width phone column the page became 8px wider and scrolled: verified (383/398px pages at 375/390px viewports on the base).
- Cause: CheckboxList rows keep the row inset and Markdown pulled the container out on both sides, 16px wider than the column: verified (base Markdown.tsx task-list margin; 374px box in a 358px column).
- Markdown's other lists already use List's flush edge from the stacked change: verified (Markdown.tsx:1910).
- An internal ListEdgeScope next to ListMarkerScope sets the row edge: verified (ListContext.tsx:138-155).
- Markdown wraps the task items in it and the negative margin is gone: verified (Markdown.tsx:1820; style removed).
- CheckboxList's public API and its own rendering do not change: verified (no CheckboxList file changed; built API surface has 0 changed rows).
- List's flush clause zeroes the row inset and suits static rows: verified (List record FR3 and its intent).
- Markdown keeps the CheckboxList representation and only inline geometry changes: verified (Markdown.tsx:1780-1817; checked states and names unchanged).
- ListEdgeScope is not exported from the package: verified (List/index.ts and src/index.ts do not re-export it).
- Before the change the page is 383/398px wide: verified.
- After the change the page equals the viewport, checkboxes stay at 0-20px and text starts at 28px: verified (375/390px; same positions on base and head).
- Other list paths are unchanged from the stacked change: verified (only the task-list branch of Markdown.tsx changed).
- The new listEdge.test.tsx task case fails without the change and passes with it: verified (fails on the base with the head test, passes on the head).
- MarkdownListBounds.a11y.chromium.spec.ts now includes a task list: verified in the diff; the spec has not run on this head.
- Vitest over Markdown, List and CheckboxList: 65 files, 1803 tests pass: verified (same counts).
- tsc --noEmit in packages/core is clean: verified.
- No new public API, default or interaction model is hidden under the fix: verified (no API rows; the focus ring clip above is a defect, not new direction).
- Changeset: task lists no longer reach 8px past both edges: verified.
- Changeset: a phone-width page no longer scrolls sideways: verified.
- Changeset: checkboxes and text keep their positions: verified.
- .changeset/markdown-task-list-fits-column.md: clear
- packages/core/src/List/ListContext.tsx: clear
- packages/core/src/Markdown/Markdown.tsx: finding (clipped focus ring, above)
- packages/core/src/Markdown/tests/MarkdownListBounds.a11y.chromium.spec.ts: clear (it has no focused-checkbox case; see the finding)
- packages/core/src/Markdown/listEdge.test.tsx: clear
a6c5a40 to
a302131
Compare
There was a problem hiding this comment.
Changes requested: the fix keeps paragraph-only task lists inside their column, with checkbox and text positions unchanged, but it clips the keyboard focus ring of every read-only task checkbox.
- The flush rows put each read-only task checkbox exactly on the CheckboxList list's inline-start edge, which keeps its inline clip, so a keyboard user sees the ring's inline-start stroke cut off (left in LTR, right in RTL), where the base showed it whole; let this static, swipe-free list drop its clip the way Markdown's other lists do, or keep the ring inside it, and add a focused-checkbox case to the Chromium bounds spec.
Everything else checks out: the overreach, the 383/398px page widths and the unchanged positions all reproduce, and the new unit case fails before the change and passes after it.
Claims and files checked
Review mode: carry-forward; reason: none
- Paragraph-only task lists reached 8px past both column edges: verified (Chromium list box 8px past each edge on the base).
- In a full-width phone column the page became 8px wider and scrolled: verified (383/398px pages at 375/390px viewports on the base).
- Cause: CheckboxList rows keep the row inset and Markdown pulled the container out on both sides, 16px wider than the column: verified (base Markdown.tsx task-list margin; 374px box in a 358px column).
- Markdown's other lists already use List's flush edge from the stacked change: verified (Markdown.tsx:1910).
- An internal ListEdgeScope next to ListMarkerScope sets the row edge: verified (ListContext.tsx:138-155).
- Markdown wraps the task items in it and the negative margin is gone: verified (Markdown.tsx:1820; style removed).
- CheckboxList's public API and its own rendering do not change: verified (no CheckboxList file changed; built API surface has 0 changed rows).
- List's flush clause zeroes the row inset and suits static rows: verified (List record FR3 and its intent).
- Markdown keeps the CheckboxList representation and only inline geometry changes: verified (Markdown.tsx:1780-1817; checked states and names unchanged).
- ListEdgeScope is not exported from the package: verified (List/index.ts and src/index.ts do not re-export it).
- Before the change the page is 383/398px wide: verified.
- After the change the page equals the viewport, checkboxes stay at 0-20px and text starts at 28px: verified (375/390px; same positions on base and head).
- Other list paths are unchanged from the stacked change: verified (only the task-list branch of Markdown.tsx changed).
- The new listEdge.test.tsx task case fails without the change and passes with it: verified (fails on the base with the head test, passes on the head).
- MarkdownListBounds.a11y.chromium.spec.ts now includes a task list: verified in the diff; the spec has not run on this head.
- Vitest over Markdown, List and CheckboxList: 65 files, 1803 tests pass: verified (same counts).
- tsc --noEmit in packages/core is clean: verified.
- No new public API, default or interaction model is hidden under the fix: verified (no API rows; the focus ring clip above is a defect, not new direction).
- Changeset: task lists no longer reach 8px past both edges: verified.
- Changeset: a phone-width page no longer scrolls sideways: verified.
- Changeset: checkboxes and text keep their positions: verified.
- .changeset/markdown-task-list-fits-column.md: clear
- packages/core/src/List/ListContext.tsx: clear
- packages/core/src/Markdown/Markdown.tsx: finding (clipped focus ring, above)
- packages/core/src/Markdown/tests/MarkdownListBounds.a11y.chromium.spec.ts: clear (it has no focused-checkbox case; see the finding)
- packages/core/src/Markdown/listEdge.test.tsx: clear
|
@astracat-bot review The focus-ring finding is fixed at 659edc2: Markdown wraps its task CheckboxList in an internal static-list scope, so the List inside drops its inline clip (task rows never swipe), as Markdown other lists already do; a plain List keeps its clip. New unit cases cover both, and the Chromium bounds spec gains a focused-checkbox case in LTR and RTL. |
There was a problem hiding this comment.
Changes requested: the task-list fix and the repair of the clipped focus ring both check out, but List's inline clip is now dropped through two separate paths, and the description needs to catch up with this commit.
List.tsx:216-221adds aListStaticScopeswitch that drops List's inline clip for the task list, while Markdown's plain lists still drop the same clip through their ownstyles.blockIndentxstyle (Markdown.tsx:645-652); route the plain lists through the same switch and deleteblockIndent, after making the scope reach only the List directly inside it, so a consumer's swipe-capable List drawn inside a Markdown item keeps its clip.- The change grows the shared
List.tsxandListContext.tsxmodules, soarchitecture:component-import-boundariesINV10 asks the description for the first-load gzip delta on the four reference pages; measured against the base withpnpm size:pages, the docs page grows by 109 B and the form, menu and table pages by 0 B, all under the 0.3 KB allowance. - The Testing section reports 1803 tests, but this head passes 1805 (the two new
listEdge.test.tsxcases), and the restoration list does not yet mentionListStaticScopeor theList.tsxchange.
The earlier focus-ring problem is fixed: the task list's <ul> no longer clips, and MarkdownListBounds.a11y.chromium.spec.ts passes on this head (4 of 4) and its new focus-ring cases fail on the previous revision. One optional wording suggestion for the new List.tsx comment is inline.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0): none
- Task-only Markdown lists reached 8px past both column edges: verified (base list box 8–382px in a 16–374px column).
- In a full-width phone column the page grew 8px and scrolled sideways: verified (383 and 398px pages at 375 and 390px viewports, scrolled 8px).
- Cause: the CheckboxList rows keep List's row inset and Markdown pulled the container out on both sides, 16px wider than the column: verified (the base task-list margin style).
- Markdown's other lists use List's flush edge: verified (Markdown.tsx:1915).
- An internal edge scope next to the marker scope sets the rows' edge: verified (ListContext.tsx:134-157).
- Markdown wraps the task items in it and drops the negative margin: verified (Markdown.tsx:1824; style removed).
- CheckboxList's public API and its own rendering are unchanged: verified (no CheckboxList file changes; the built API surface has 0 changed rows).
- List's flush edge zeroes the row inset and suits static rows: verified (List record FR3).
- Markdown keeps the CheckboxList representation and only inline geometry changes: verified (checked states and names unchanged); the task list now also drops its inline clip.
- The edge scope is not exported from the package: verified (List/index.ts and src/index.ts do not re-export it).
- Before the change the page is 383/398px wide: verified.
- After the change the page equals the viewport and checkboxes keep their place: verified (375/390px; checkboxes at 0–20px on both; padded frames pixel-identical).
- Other list paths are unchanged: verified (only the task-list branch renders under the new scopes; a plain List keeps its clip).
- The new task case fails without the change and passes with it: verified; the new clip case also fails on the previous revision and passes here.
- The Chromium bounds spec now includes a task list: verified; it passes 4 of 4 here.
- Vitest over Markdown, List and CheckboxList: 65 files, 1803 tests pass: false at this head (65 files, 1805 tests pass).
- tsc --noEmit in packages/core is clean: verified.
- Real-Chromium page widths and row positions: consistent with the probes here at 375 and 390px, light and dark.
- The Storybook-based spec could not run locally and relies on CI: CI does not run on this stacked branch; the spec ran here on a static Storybook build and passes.
- No new public API, visual representation, default or interaction model hides under the fix: verified (0 API rows).
- Scope is Markdown and List's internal context: verified in substance (List.tsx changes only under the internal scope).
- Public text carries no internal context: verified.
- Changeset: task lists no longer reach 8px past both edges: verified.
- Changeset: a phone-width page no longer scrolls sideways: verified.
- Changeset: checkboxes and text keep their positions: verified.
- .changeset/markdown-task-list-fits-column.md: clear
- packages/core/src/List/List.tsx: finding (second clip-drop path; INV10 deltas; comment wording, non-blocking)
- packages/core/src/List/ListContext.tsx: finding (the static scope reaches every List below it; part of the first finding)
- packages/core/src/Markdown/Markdown.tsx: finding (plain lists keep their own clip-drop copy)
- packages/core/src/Markdown/tests/MarkdownListBounds.a11y.chromium.spec.ts: clear
- packages/core/src/Markdown/listEdge.test.tsx: clear
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet.
Bulleted, numbered and task lists in Markdown now stay inside their column, with markers, checkboxes and text where they were. The earlier finding is fixed: one internal static mark now drops List's inline clip for every Markdown list, while a plain List and a List nested in a Markdown row keep it. This pull request now targets main and carries the five commits of #12290, so landing it lands both fixes.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: Stacked on #12290, with this pull request's own changes in its last four commits: verified (nine commits against
main; the first five are #12290's, still open). - Claim: Task-only lists reached 8px past both column edges and widened a full-width phone page, which scrolled sideways: verified (on
mainthe task list spans −8…398px in a 0…390px column, page 398px, scrolled 8px). - Claim: Cause: the checkbox list's rows keep List's row inset and Markdown pulled its container out on both sides, 16px wider than the column: verified (the removed negative margin on the checkbox list container).
- Claim: Markdown's other lists use List's flush edge and task lists now do too: verified (
Markdown.tsx:1911,:1817; flush unit cases). - Claim: An internal edge scope beside the marker scope sets the rows' edge, Markdown wraps the task items in it and the negative margin goes: verified (
ListContext.tsx:145-164,Markdown.tsx:1817). - Claim: The checkbox list's public API and its own rendering do not change: verified (no CheckboxList file changes; 0 API rows).
- Claim: Flush rows put each read-only checkbox where List's inline clip would cut its focus ring: verified (the earlier revision cuts the ring at the list element, LTR and RTL).
- Claim: Static Markdown lists may drop that clip under List FR9 and DEC-5, and bulleted and numbered lists already did through their own style: verified (record text; on
mainboth compute visible overflow). - Claim: One internal static mark now drops the clip for every Markdown list, task lists included: verified (
Markdown.tsx:1808,:1907;List.tsx:392-394,:449; unit cases). - Claim: Each List passes its mark to its rows, so a List drawn in a row or a header keeps its clip: verified (unit case for a row; the header renders inside its List's context,
List.tsx:496-508). - Claim: One provider per list level and no reset provider, so deep nesting still renders: verified (the Markdown suite, block-nesting cases included, passes).
- Claim: The style copy is gone: verified (
blockIndentis deleted). - Claim: List FR3 makes flush rows zero-inset and fit static rows: verified in substance (FR3 states the zero inset; the "works anywhere" wording comes from the record's builder-impact row).
- Claim: Markdown keeps the checkbox-list representation; only its inline geometry and clip change: verified.
- Claim: None of the new context helpers is exported from the package: verified (
List/index.ts; no package entry re-exportsListContext.tsx). - Claim: List drops the clip when its mark differs from its parent List's and passes the mark on; the large Markdown diff is re-indentation: verified (23 added and 20 deleted lines with whitespace ignored).
- Claim: Before the change the page is 383/398px wide at 375/390px: verified at 390px (398px); 375px not re-measured.
- Claim: After the change the page equals the viewport, checkboxes stay at 0–20px and text keeps its start: verified (390px page; checkboxes 0–20px; frames pixel-identical to
main). - Claim: The representative unchanged rows match the previous layout: verified for the rows re-run here (Default, Nested lists and Long number markers at 390px, LTR and RTL, pixel-identical to
mainapart from its wider RTL page); 375px and 1280px not re-run. - Claim: The new task unit case fails without the change and passes with it, and new cases cover the clip: verified (on #12290's head the task case and four clip cases fail; all pass here).
- Claim: The Chromium bounds spec covers a task list and a focused checkbox in LTR and RTL, and the focus case fails on the earlier revision: verified with the same probes (ring cut on the earlier revision, whole here); the spec file itself was not run against a static build.
- Claim: One defect restored, no new public API, representation, default or interaction model, no internal context in public text: verified.
- Claim: Bundle size: docs page +131 B gzip, form, menu and table +0 B, under INV10's allowance, and docs is the only reference page with a List: verified (measured against
main, same numbers). - Claim: Unit suites for Markdown, List and CheckboxList pass and the Core typecheck is clean: verified (65 files, 1808 tests; no type errors).
- Claim: Preflight passes apart from two environment-only failures: not re-run (a local run).
- Claim: Changeset, bulleted and numbered lists: they no longer reach past both edges, a phone page no longer scrolls sideways, and markers and text keep their positions: verified (numbered lists reached 24px past the start edge on
main; all lists now fit; frames identical). - Claim: Changeset, task lists: they no longer reach past both edges, a phone-width page no longer scrolls, and checkboxes and text keep their positions: verified.
- File
.changeset/markdown-list-fits-column.md: clear - File
.changeset/markdown-task-list-fits-column.md: clear - File
docs/specs/components/Markdown/Markdown.spec.md: clear (links an existing current claim) - File
internal/eslint-plugin-astryx/no-comment-provenance.baseline.json: clear (its check passes) - File
packages/core/src/List/List.tsx: clear - File
packages/core/src/List/ListContext.tsx: clear - File
packages/core/src/Markdown/Markdown.tsx: clear - File
packages/core/src/Markdown/__tests__/MarkdownListBounds.a11y.chromium.spec.ts: clear - File
packages/core/src/Markdown/listEdge.test.tsx: clear
A Markdown task list stepped its CheckboxList out 8px past both column edges to cancel the row inset. The rows now take List's flush edge through an internal ListEdgeScope, so checkboxes and text keep their positions and the list box matches the column. CheckboxList itself is unchanged.
… edge Task rows never swipe, so Markdown wraps its task CheckboxList in an internal ListStaticScope, and the List inside drops its inline clip, as Markdown's other lists do through xstyle. A plain List keeps its clip.
… scope ListStaticScope now marks only the next List: List resets it for its rows, so a List nested in a row keeps its clip. Markdown's bulleted and numbered lists use the scope too, and their own xstyle copy is gone. [skip ci]
Markdown nests lists up to 100 deep, and a wrapper component plus a reset provider at each level exhausted the stack there. Each Markdown list now provides its own static mark, and a List that reads its parent List's mark is in a row, so it keeps its clip with no reset provider. [skip ci]
638a3d2 to
23a5c38
Compare
|
/approve-spec 23a5c38 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet.
Markdown task lists now stay inside their column, so a full-width answer on a phone no longer scrolls sideways, and checkboxes and text stay exactly where they were. One internal static mark now drops List's inline clip for every Markdown list, which keeps a focused task checkbox's ring whole while a plain List and a List nested in a row keep their clip. Nothing blocks; there are two optional points: a wording suggestion on the ListStaticContext comment (inline), and the description's docs-page size figure (+117 B) now measures +100 B gzip against main.
Claims and files checked
Review mode: full; reason: rebase
- Claim: Follows the bulleted and numbered list fix, which has landed, and now targets
main: verified (that fix's changes are onmainthrough a batch landing; this pull request targetsmain). - Claim: A list made only of task items reached 8px past both column edges, so a full-width phone page grew 8px and scrolled sideways: verified (on
mainthe task list spans −8…398px in a 0…390px column; the page is 398px and scrolls 8px). - Claim: Cause: the checkbox list's rows keep List's row inset, and Markdown pulled its container out with a negative inline margin on both sides, 16px wider than the column: verified (the removed −8px margin; a 406px box in a 390px column).
- Claim: Markdown's other lists use List's flush edge, and task lists now do too: verified (
Markdown.tsx:1911,:1817; the task flush unit case). - Claim: An internal edge scope beside the marker scope sets the rows' edge, Markdown wraps the task items in it, and the negative margin goes: verified (
ListContext.tsx:145-162,Markdown.tsx:1817). - Claim: The checkbox list's public API and its own rendering do not change: verified (no CheckboxList file changes; zero API rows).
- Claim: Flush rows put each read-only checkbox where List's inline clip would cut its focus ring: verified (with the clip put back on the task list, the 3px ring starts 3px outside the clip edge).
- Claim: Static Markdown lists may drop that clip under the List record's static-list exception, and bulleted and numbered lists already did through their own style: verified (record text; the deleted
blockIndentstyle). - Claim: One internal static mark now drops the clip for every Markdown list, task lists included: verified (
Markdown.tsx:1808,:1907;List.tsx:392-394,:449; unit cases). - Claim: Each List passes its mark to its rows, so a List drawn in a row or a header keeps its clip: verified (unit case for a row; the header renders inside its List's own context,
List.tsx:496-509). - Claim: One provider per list level and no reset provider, so 100-deep nesting still renders: verified (the 100-deep nesting case passes).
- Claim: The style copy is gone: verified (
blockIndentis deleted). - Claim: The List record makes flush rows zero-inset, usable anywhere and suited to static rows: verified (the record's flush rule and builder-impact row).
- Claim: Markdown keeps the checkbox-list representation; only its inline geometry and clip change, as for its other lists: verified.
- Claim: Static Markdown lists may omit the clip and swipe-capable collections keep it: verified (record text; the plain-List unit case).
- Claim: None of the new helpers is exported from the package: verified (the List entry exports only List and ListItem; no internal entry re-exports the context module).
- Claim: A List whose mark differs from its parent List's drops the clip and passes its mark on, and the large Markdown diff is re-indentation: verified (22 added and 18 deleted lines with whitespace ignored).
- Claim: Before the change the page is 383/398px wide at 375/390px: verified (383px and 398px with the column at the viewport edge).
- Claim: After the change the page width equals the viewport, checkboxes stay at 0–20px and text keeps its start: verified (375px and 390px pages; checkboxes 0–20px; the padded and focused frames are pixel-identical to
main). - Claim: The representative unchanged rows are identical to the earlier fix: verified for the rows re-run here (bulleted, nested numbered and numbered lists at 375px and 390px, identical to
main, which now holds that fix). - Claim: The new task unit case fails without the change and passes with it, and new cases cover dropping and keeping the clip: verified (on
mainthe task case and four clip cases fail; all pass here). - Claim: The Chromium bounds spec covers a task list and a focused checkbox in both directions, and the focus case fails on the previous head: verified in substance (its probes hold here in LTR: lists inside the column, ring whole, and the ring is cut when the clip returns).
- Claim: One defect is restored, with no tagalong, no new public API, representation, default or interaction model, and no internal context in public text: verified.
- Claim: Bundle size: docs +117 B, form and menu +0 B, table +1 B, all under the 0.3 KB allowance, and docs is the only reference page with a List: verified in substance (against
main: docs +100 B gzip, form and menu +0 B, table +1 B). - Claim: The Markdown, List and CheckboxList unit suites pass and the Core typecheck is clean: verified (65 files, 1808 tests; no type errors).
- Claim: The Chromium bounds spec passes against a built Storybook: verified in substance (the same assertions hold under its probes in LTR).
- Claim: Changeset: task lists no longer reach 8px past both edges, so a phone-width page no longer scrolls sideways, and checkboxes and text keep their positions: verified.
- File
.changeset/markdown-task-list-fits-column.md: clear - File
internal/eslint-plugin-astryx/no-comment-provenance.baseline.json: clear (its check reports it up to date) - File
packages/core/src/List/List.tsx: clear - File
packages/core/src/List/ListContext.tsx: optional wording suggestion at lines 180-183 - File
packages/core/src/Markdown/Markdown.tsx: clear - File
packages/core/src/Markdown/__tests__/MarkdownListBounds.a11y.chromium.spec.ts: clear (onecurlylint warning at line 151) - File
packages/core/src/Markdown/listEdge.test.tsx: clear
| * a focus ring or an outside counter on its edge draws whole. Each List | ||
| * passes the mark it read to its rows through ListContext, and a List that | ||
| * reads the same mark as its parent List is not static, so a List nested in a | ||
| * row keeps its clip. Markdown gives each of its lists, task lists included, |
There was a problem hiding this comment.
Optional wording suggestion: this sentence runs 37 words over three topics. Suggested:
* Each List passes the mark it read to its rows through ListContext. A List
* nested in a row reads its parent List's mark, so it keeps its clip.- #12367 [experimental] export: checks the file it wrote and names the one file to share Author: @josephfarina - #12405 [experimental] export: the size output names each part of the file under its JSON key Author: @josephfarina - #12295 fix(Markdown): keep task lists inside their column Author: @josephfarina - #12696 docs: Toast needs no provider; Table hooks name their row-type generic Author: @josephfarina - #12733 [experimental] export: a package linked from a folder inside the project is a package, so --reverse gives the page back Author: @josephfarina
|
Landed in #12859. |
Follows #12290 (Markdown lists stay inside their column), which has merged; this PR now targets main.
User impact
A Markdown list made only of task items (
- [x]/- [ ]) reached 8px past both edges of its column. In a full-width column on a phone, the page became 8px wider than the screen and scrolled sideways.Problem and solution fit
Markdown's other lists use List's
flushedge (#12290). Task lists now do the same. An internalListEdgeScope, next toListMarkerScopeinListContext.tsx, sets the edge for the rows inside it. Markdown wraps its task items in that scope, and the negative margin goes away. CheckboxList's public API and its own rendering do not change.The flush rows put each read-only task checkbox on the list's inline-start edge, where List's inline clip would cut its keyboard focus ring. Static Markdown lists may omit that clip (
component:ListFR9, DEC-5), and Markdown's bulleted and numbered lists already did, through their ownxstyle. Now one internal static mark does it for every Markdown list: Markdown provides a fresh mark (ListStaticContext) around each of its lists, task lists included, and the List that reads it drops its inline clip. Each List passes the mark it read to its rows, so a List a caller draws in a row (or in a header) reads its parent's mark and keeps its clip. It adds one provider per list level and no reset provider, so Markdown's 100-deep nesting still renders. Thexstylecopy is gone.Expected behavior and authority
component:ListFR3:flushresolves the row inset to zero; it works anywhere and suits static rows.component:Markdownkeeps the released CheckboxList representation for paragraph-only task lists. Its inline geometry changes, and its list drops List's inline clip, as Markdown's other lists already do.component:ListFR9 and DEC-5: static Markdown document lists may omit inline clipping; swipe-capable collections keep it.Smallest restoration
ListContext.tsx: add the internalListEdgeScopeand the static mark (ListStaticContext,listStaticMark). None is exported from the package.List.tsx: a List whose mark differs from its parent List's drops the inline clip, and passes its mark to its rows.Markdown.tsx: wrap the task items inListEdgeScopeand drop the container's negative margin; give every list its own static mark and delete the plain lists'xstylecopy. The large diff is re-indentation; view it with whitespace hidden.Evidence
taskcase inlistEdge.test.tsxfails without this change and passes with it; new cases check that every Markdown list drops the clip, a plain List keeps it, and a List inside a static list's row keeps it.MarkdownListBounds.a11y.chromium.spec.tsincludes a task list and a focused-checkbox case in LTR and RTL; that case fails on the previous head (the list clips the ring) and passes now.Scope
Components: Markdown, List (internal context only)
Bundle size (first load, gzip)
pnpm size:pages, base (#12290's head) against this head: docs +117 B; form and menu +0 B; table +1 B. All are under INV10's 0.3 KB allowance. The docs page is the only reference page with a List.Testing
vitest runoverpackages/core/src/Markdown,packages/core/src/Listandpackages/core/src/CheckboxList: all pass.MarkdownListBounds.a11y.chromium.spec.tsagainst a built Storybook: all cases pass.