Skip to content
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: set line height to Icon #2350

Merged
merged 2 commits into from
Nov 17, 2020
Merged

Conversation

jaulz
Copy link
Collaborator

@jaulz jaulz commented Nov 11, 2020

Summary

Currently, the icon is slightly shifted to the bottom on web because there is no line height. In this example the size is 24 but the actual height of the rendered icon element is 28:
image

If we pass a line height as well the height of the icon element will be 24 (as expected):
image

Test plan

  1. Check if icon (for example in Appbar) is not shifted to the bottom anymore

@callstack-bot
Copy link

callstack-bot commented Nov 11, 2020

Hey @jaulz, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

@github-actions
Copy link

The mobile version of example app from this branch is ready! You can see it here

.

@Trancever
Copy link
Contributor

@jaulz Thanks!

@Trancever Trancever merged commit eb421bc into master Nov 17, 2020
@Trancever Trancever deleted the jaulz/fix-set-line-height-to-icon branch November 17, 2020 10:19
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.

None yet

3 participants