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

Revert LineHeight bug fix #132

Merged
merged 1 commit into from
Feb 12, 2024
Merged

Conversation

halilozercan
Copy link
Owner

InlineContent is not supposed to have its own ParagraphStyle. That kind of workaround makes the content essentially "non-inline". Each inline content composable gets its own Paragraph. Instead, we should address the root of the problem which stems from the fact that default Material3 theming adds LineHeight by default.

Sample project now uses Material3 and overrides the default LineHeight to TextUnit.Unspecified in its theming. Inline content strictly respecting the line height argument should be addressed by the Compose team.

InlineContent is not supposed to have its own ParagraphStyle. That kind of workaround makes the content essentially "non-inline". Each inline content composable gets its own Paragraph. Instead, we should address the root of the problem which stems from the fact that default Material3 theming adds LineHeight by default.

Sample project now uses Material3 and overrides the default LineHeight to `TextUnit.Unspecified` in its theming. Inline content strictly respecting the line height argument should be addressed by the Compose team.
@halilozercan halilozercan merged commit bfc8e6d into main Feb 12, 2024
2 checks passed
@halilozercan halilozercan deleted the halilozercan/revert-lineheight-fix branch February 12, 2024 14:59
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.

1 participant