Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
@cixzhang — I’d appreciate your feedback on this draft. Focus: A collapsed CodeBlock can no longer remain clipped after its header or collapse eligibility disappears. This is PR 5/20 in the linked Markdown stack. It is intentionally one commit and one primary intent; the description includes matched before/after screenshots and previous/next links, so you can review just this PR’s delta. |
humbertovirtudes
left a comment
There was a problem hiding this comment.
This correctly prevents a CodeBlock from remaining collapsed after its visible collapse control disappears. The regression test covers collapse, header removal, content restoration, and re-adding the header, and it is mutation-sensitive against the base behavior. Documentation and the patch changeset are aligned. No blocking concerns.
PR Analysis Report
Modified ComponentsOutline (@astryxdesign/core)
Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Visual Regression1 of 420 shot(s) changed. View the report A change here is a question, not a failure: check whether the after is the
Generated by PR Enrichment workflow | View full report |



User impact
A collapsed CodeBlock can no longer remain clipped after its header or collapse eligibility disappears.
Problem and solution fit
Collapse state survived removal of the only visible control that could reverse it, leaving authored code inaccessible. The fix scopes collapsed state to the current visible collapse control and expands when that control goes away.
Expected behavior and authority
CodeBlock accessibility and content-availability behavior. Pinned source.
Smallest restoration
Derive effective collapse state from current eligibility/header visibility and pin dynamic-prop recovery without changing ordinary collapsible blocks.
Evidence
Real-browser evidence
Scope
Testing
pnpm exec vitest run packages/core/src/Markdown packages/core/src/CodeBlock— 37 files, 760 tests.pnpm --filter @astryxdesign/core typecheck.pnpm check:repo.Stack
Previous: #6659 · Next: #6661 · Each PR is intentionally one commit and one primary intent.