Skip to content

docs(evo-icon): compact all-icons storybook example into a dense grid - #885

Open
LuLaValva wants to merge 2 commits into
mainfrom
llavalva-M451495HWX-evo-compact-icon-examples-rb8fdd-icon-grid
Open

docs(evo-icon): compact all-icons storybook example into a dense grid#885
LuLaValva wants to merge 2 commits into
mainfrom
llavalva-M451495HWX-evo-compact-icon-examples-rb8fdd-icon-grid

Conversation

@LuLaValva

@LuLaValva LuLaValva commented Aug 13, 2026

Copy link
Copy Markdown
Member

Replaces the evo-marko all-icons Storybook example (a spread-out grid of labeled tiles) with a dense grid: each icon is a button that toggles an evo-tooltip showing its selectable tag name (<evo-icon-foo/>), closing on focus out. The cells are generated by importSVG as a local icon-example tag with scoped styles, so nothing leaks into the global Storybook CSS and the generated example shrinks to three lines per icon. Storybook-only; no changeset.

Dense icon grid with an open tooltip showing <evo-icon-ai-camera-24/>

In Safari, closing by clicking elsewhere relies on the click-to-focus fix in #884.

🤖 Generated with Claude Code

Replaces the labeled-tile grid with a dense icon grid built from a local
icon-example tag with scoped styles. Clicking an icon toggles a tooltip
showing its selectable tag name; focus out closes it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 13, 2026 00:44
@changeset-bot

changeset-bot Bot commented Aug 13, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 84b354a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the evo-icon (evo-marko) Storybook example generation to display all icons in a compact, dense grid by generating wrapper tags (icon-grid, icon-example) and switching the importSVG script to output the new structure.

Changes:

  • Add icon-grid tag to wrap generated examples in a scoped CSS grid layout.
  • Add icon-example tag to render each icon as a button that toggles an evo-tooltip showing the icon’s tag name.
  • Update scripts/import-svg.ts to generate the new icon example markup and run Prettier on the generated example file.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
packages/evo-marko/src/tags/evo-icon/examples/tags/icon-grid.marko New scoped grid wrapper used by the generated all-icons example.
packages/evo-marko/src/tags/evo-icon/examples/tags/icon-example.marko New per-icon cell wrapper that toggles an evo-tooltip via a button host.
packages/evo-marko/scripts/import-svg.ts Switches icon example output to icon-grid/icon-example and formats the generated example with Prettier.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

PR Preview Deployed

Websiteevo-markoevo-reactebayui-coreebayui-core-reactskin

commit 84b354a

@HenriqueLimas HenriqueLimas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add the same for evo-react 🥹

@LuLaValva LuLaValva changed the title docs(evo-icon): compact all-icons storybook example into a dense grid docs: compact all-icons storybook examples into dense grids (evo-marko + evo-react) Aug 13, 2026
@LuLaValva
LuLaValva force-pushed the llavalva-M451495HWX-evo-compact-icon-examples-rb8fdd-icon-grid branch from c86724f to 7b435b1 Compare August 13, 2026 15:39
@LuLaValva LuLaValva changed the title docs: compact all-icons storybook examples into dense grids (evo-marko + evo-react) docs(evo-icon): compact all-icons storybook example into a dense grid Aug 13, 2026
@LuLaValva

Copy link
Copy Markdown
Member Author

could you add the same for evo-react 🥹

I will, but after EvoTooltip is merged! Otherwise we'll have to create our own pseudo-tooltip just for this case.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@HenriqueLimas

Copy link
Copy Markdown
Member

@LuLaValva I meant just the grid layout

@LuLaValva

Copy link
Copy Markdown
Member Author

The grid layout is great, but we need to surface the icon names somehow! I used tooltips in @evo-web/marko, I suppose we could do something like title= + copy name on click…

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.

3 participants