Skip to content

Refactor choice icons and update SVG assets#159

Draft
phonzammi wants to merge 9 commits into
mainfrom
phonzammi/dev
Draft

Refactor choice icons and update SVG assets#159
phonzammi wants to merge 9 commits into
mainfrom
phonzammi/dev

Conversation

@phonzammi

@phonzammi phonzammi commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Addresses feedback from: #153 (comment)

This change introduces a fixed icon column (wrapper) for option (choice) icons, ensuring labels start at a consistent horizontal position regardless of icon dimensions. SVG assets can have different internal structures (e.g. viewBox, internal padding, artwork bounds, and centering), which may affect their visual footprint even when rendered at the same size. Reserving a fixed icon area reduces layout dependence on those asset-specific characteristics.

Additional cleanup includes:

  • Remove the temporary custom iconStyle overrides (to be revisited in a follow-up update).
  • Update JavaScript, TypeScript, npm, pnpm, Bun, and Yarn icons to use the Devicon CDN for more consistent SVG assets and rendering.

- Remove custom `iconStyle` for now.
- Updated svg icons.
- Adjusted ChoiceGroup component styles for better icon alignment and spacing.
- Updated icon sources for JavaScript, TypeScript, npm, pnpm, Bun, and Yarn to use devicon CDN.
@brillout

brillout commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Btw. about the URL about we use GitHub?

See for example: https://vike.dev/press#social-media => https://raw.githubusercontent.com/vikejs/vike-assets/main/logo/vike-social.png

@brillout

brillout commented Jun 3, 2026

Copy link
Copy Markdown
Owner

But we can use also use https://devicon.dev/ (we can change to GitHub only if we have issues with it).

@brillout

brillout commented Jun 3, 2026

Copy link
Copy Markdown
Owner
  • The Express logo looks squeezed
  • Tabbing between Hono / Express / Fastify makes some subtle but noticeable layout shifts

Intervention++

@phonzammi

Copy link
Copy Markdown
Collaborator Author
  • The Express logo looks squeezed
  • Tabbing between Hono / Express / Fastify makes some subtle but noticeable layout shifts

Intervention++

Yes, I haven’t updated the Tabs component yet.

@phonzammi

Copy link
Copy Markdown
Collaborator Author

But we can use also use https://devicon.dev/ (we can change to GitHub only if we have issues with it).

Let’s keep using https://devicon.dev/ for now

@brillout

brillout commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Actually, maybe we should always use devicon.dev for all icons? The thing I like about https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/express/express-original.svg is that it will automatically get updated whenever a project changes its icon. FYI @magne4000.

- Modified viewBox and aspect ratio for h3-icon.svg, react-icon.svg, solidjs-icon.svg, and vuejs-icon.svg
- Adjusted the gap and line-height in ChoiceGroup.css.
- Changed image dimensions in ChoiceGroup.css to enhance icon display consistency.
@magne4000

Copy link
Copy Markdown

There is also https://simpleicons.org

@phonzammi

Copy link
Copy Markdown
Collaborator Author

Both https://devicon.dev/ and https://simpleicons.org/ are missing some icons.

For the best results, we need to adjust the SVG viewBox values.

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