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: added style to component used for text measurement on Android #3858

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

Y0lk
Copy link
Contributor

@Y0lk Y0lk commented Apr 28, 2023

Summary

On Android, the text on AnimatedFAB is calculated using a 2nd component, but this component doesn't take the text style into account. This leads to incorrect text measurement.

Test plan

This issue is easy to see on Android if you're using the MD2 theme. Depending on the length of your label, the spacing between the icon and the text will look different because the width of the label is wrong.

@callstack-bot
Copy link

callstack-bot commented Apr 28, 2023

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

@lukewalczak lukewalczak added this to the 5.10.0 milestone Jul 25, 2023
@lukewalczak lukewalczak merged commit 9cb6442 into callstack:main Aug 2, 2023
@Y0lk Y0lk deleted the fix/inconsistent-fab-text-size branch August 2, 2023 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants