Skip to content

Comments

Improved vertical positioning for svg text icons#3056

Merged
Gerrit0 merged 2 commits intoTypeStrong:devfrom
kozi:master
Jan 5, 2026
Merged

Improved vertical positioning for svg text icons#3056
Gerrit0 merged 2 commits intoTypeStrong:devfrom
kozi:master

Conversation

@kozi
Copy link
Contributor

@kozi kozi commented Dec 23, 2025

Replaced dominant-baseline="central" with dy="0.35em" to improve vertical positioning for svg text icons.

https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/dy

grafik

@Gerrit0 Gerrit0 changed the base branch from master to dev January 5, 2026 01:02
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Jan 5, 2026

It's a real shame that asking the browser to do this using the knowledge it has of the font in use apparently has worse results than just hardcoding a random value that looks about right...

@Gerrit0 Gerrit0 merged commit b2f0149 into TypeStrong:dev Jan 5, 2026
1 of 8 checks passed
@Gerrit0 Gerrit0 added this to the v0.28.16 milestone Jan 11, 2026
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