Skip to content

Conversation

@dhartunian
Copy link

The svg examples in the components docs file did not set a viewBox on the svg components which resulted them in having a hover target that was much taller than the button in both directions.

This change explicitly sets the viewBox of 0 0 24 24 on each svg icon.

Before:
Screenshot 2025-11-08 at 15 43 20

After:
Screenshot 2025-11-08 at 15 44 39

dz4k and others added 6 commits September 2, 2025 12:12
Fixes toggle switch focus rings and un-applies the select height hack from `<select multiple>`.
The svg examples in the components docs file did not set a viewBox on
the svg components which resulted them in having a hover target that
was much taller than the button in both directions.

This change explicitly sets the viewBox of `0 0 24 24` on each svg icon.
@geoffrey-eisenbarth
Copy link
Collaborator

Thanks for the PR! Since this is entirely docs related, I've re-targeted it to the prod branch.

@geoffrey-eisenbarth geoffrey-eisenbarth changed the base branch from dev to prod November 10, 2025 03:16
geoffrey-eisenbarth added a commit that referenced this pull request Nov 10, 2025
docs: fix SVG viewBox in icon button examples. author: @dhartunian (PR #145)
@geoffrey-eisenbarth
Copy link
Collaborator

@dhartunian Really appreciate this! I had to end up cherry-picking your commit onto prod in order to avoid some commits in dev that aren't ready for prod yet.

Thanks again!

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