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

Set button text size to button font size automatically; make line height automatically scale based on font size #1340

Merged
merged 9 commits into from
Nov 25, 2024

Conversation

kkoreilly
Copy link
Member

This PR makes the text element of a button automatically have the font size of the button itself, which makes it much easier to customize. It also makes line height expressed in terms of em instead of dp, which makes it automatically scale based on font size and thus removes the need for manually changing line height when changing font size. I will document this behavior on the website within the next few days.

Fixes #1313 and fixes #1150

@rcoreilly rcoreilly merged commit ef1e752 into main Nov 25, 2024
1 check passed
@rcoreilly rcoreilly deleted the text-size branch November 25, 2024 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants