Skip to content

fix(markdown): point the code block collapse arrow at the action it p… - #113

Merged
matsuzaka-yuki merged 1 commit into
mainfrom
fix(markdown)-point-the-code-block-collapse-arrow-at-the-action-it-performs
Sep 30, 2026
Merged

matsuzaka-yuki merged 1 commit into
mainfrom
fix(markdown)-point-the-code-block-collapse-arrow-at-the-action-it-performs

Conversation

@yCENzh

@yCENzh yCENzh commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

…erforms

The rotate(180deg) was bound to .collapsed, so a collapsed block showed an upward chevron while its accessible name read "Expand code block". The inline keyboard-arrow-down shape already reads as "expand" while collapsed, so the rotation belongs to .expanded. This also matches the --open convention ArchiveList.svelte already uses for the same icon.

Adds a Playwright spec that derives the arrow's visual direction from the SVG path's own coordinate system through getScreenCTM, covering direct load and Swup client navigation.

#110

…erforms

The rotate(180deg) was bound to `.collapsed`, so a collapsed block showed an
upward chevron while its accessible name read "Expand code block". The inline
keyboard-arrow-down shape already reads as "expand" while collapsed, so the
rotation belongs to `.expanded`. This also matches the `--open` convention
ArchiveList.svelte already uses for the same icon.

Adds a Playwright spec that derives the arrow's visual direction from the SVG
path's own coordinate system through getScreenCTM, covering direct load and
Swup client navigation.
@matsuzaka-yuki
matsuzaka-yuki merged commit f5afedd into main Sep 30, 2026
4 checks passed
@yCENzh
yCENzh deleted the fix(markdown)-point-the-code-block-collapse-arrow-at-the-action-it-performs branch September 30, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants