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

SpanStyle properties do not merge when appropriate #709

Open
JakeWharton opened this issue Feb 18, 2025 · 2 comments
Open

SpanStyle properties do not merge when appropriate #709

JakeWharton opened this issue Feb 18, 2025 · 2 comments
Labels
bug Something isn't working mosaic/runtime

Comments

@JakeWharton
Copy link
Owner

buildAnnotatedString {
	append("one")
	withStyle(SpanStyle(textStyle = Underline)) {
		append("two")
		append(buildAnnotatedString {
			withStyle(SpanStyle(textStyle = Italic)) {
				append("three")
			}
		})
	}
	append("four")
}

This is also a problem in Compose UI with its TextDecoration (e.g., underline + strikethrough).

@JakeWharton JakeWharton added bug Something isn't working mosaic/runtime labels Feb 18, 2025
@JakeWharton
Copy link
Owner Author

With more advanced underlines coming in #628, we probably need to change this design anyway.

@JakeWharton
Copy link
Owner Author

JakeWharton commented Feb 19, 2025

Upstream bug: https://issuetracker.google.com/issues/397701274, not that we're blocked by it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mosaic/runtime
Projects
None yet
Development

No branches or pull requests

1 participant