-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(TextLink): vertical alignment when used within flexbox container #2584
fix(TextLink): vertical alignment when used within flexbox container #2584
Conversation
🦋 Changeset detectedLatest commit: f48938d The changes in this PR will be included in the next version bump. This PR includes changesets to release 32 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
Worth mentioning that I had another idea to add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! will hopefully avoid regressions in consumers, thanks for catching :)
Purpose of PR
Fix TextLink vertical alignment when used within flexbox container.
Problem
When used within a flexbox container TextLink stretches to full height. It used to have
style="align-items: center"
so when it's stretched it still would look aligned. But with recent changes in #2574 it was changed tostyle="align-items: baseline"
to align it when used within inline text elements.With this PR I'd like to return previous behaviour back (when TextLink is stretched to full height, and its elements are centrally aligned), but at the same time keep text and icon aligned to baseline when used within other text.
🚨 But to make it work I had to add an extra DOM element.
Bug screenshots