Skip to content

feat(GnDocsExample): replace Show code text toggle with a chevron#493

Draft
johnleider wants to merge 1 commit into
masterfrom
feat/gn-docs-example-toggle-chevron
Draft

feat(GnDocsExample): replace Show code text toggle with a chevron#493
johnleider wants to merge 1 commit into
masterfrom
feat/gn-docs-example-toggle-chevron

Conversation

@johnleider

Copy link
Copy Markdown
Member

Description

Replaces the "Show code" / "Hide code" text label on the GnDocsExample code toggle bar with the rotating chevron used everywhere else in the v0 docs.

  • @paper/genesis — new toggle-icon scoped slot on GnDocsExample (receives expanded), with an inline-SVG chevron fallback that follows the existing GnPeek idiom (chevron-down, rotates 180° when expanded). The button keeps its accessible name via a dynamic aria-label ("Show code" / "Hide code"); aria-expanded/aria-controls and the filename/language/file-count meta are unchanged.
  • apps/docsDocsGenesisExample fills the slot with AppChevron (vertical idiom, respects reduced motion).

Verified in the running docs app: toggle collapsed/expanded round-trip, chevron rotation, aria state, and meta rendering on multi-file examples across two pages.

The code toggle bar now renders a rotating chevron through a new
toggle-icon scoped slot (receives expanded) with an inline-SVG
fallback matching the GnPeek idiom. The button keeps its accessible
name via a dynamic aria-label; the filename/language/file-count meta
is unchanged. The docs app fills the slot with AppChevron.
@johnleider johnleider added this to the v1.1.0 milestone Jul 3, 2026
@johnleider johnleider added documentation Improvements or additions to documentation enhancement New feature or request labels Jul 3, 2026
@johnleider johnleider self-assigned this Jul 3, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jul 3, 2026

Copy link
Copy Markdown

Open in StackBlitz

commit: 003662d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant