-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Text color is sometimes randomly black on iOS #245
Comments
That's super strange. Can you reproduce this with the sample app? Do you see it on other platforms like desktop? Wondering if it may be a compose multiplatform bug or so |
(Can you please also test with v0.28.0-rc01?) |
Closing due to inactivity. please report back to open up again. |
For what it's worth, I can reproduce this on iOS as well, but only on iOS, and what's even more interesting is that copying text that has turned black actually copies as black when pasted and turned into another Unfortunately I can't find a clear way to reproduce it, but just messing around in the app for a bit seems to trigger it consistently. My project, for reference: https://github.com/hypergonial/chat-frontend I can't seem to find any bug reports on the Compose YouTrack about this either, so maybe this library is doing something very specific to upset the Compose gods? Edit: Also worth noting that this only affects text contained in |
@hypergonial can you please retest with the latest release v0.32.0-b01 as well? do you set any special colors via theme or anything similar? |
I do quite a bit of theming via Material Kolor to support Material You on other platforms, but I am not entirely certain that it's the culprit here. In theory it should just generate a It's also highly unusual that the text initially looks fine, but after navigating back & forth in the app, it eventually turns black. And it's not consistent either, my messaging app contains a list of potentially hundreds of I'll try retesting with the latest release (This was using |
Thank you for the additional information @hypergonial it sounds/seems like there might be either some wrong recomposition, some state remembered which shouldn't or some other problem at play. with 0.32.0-b01 some of the duplicated ways to set text colors have been changed to prioritize colors via the No urge, thank you for spending some extra cycles on looking into that! |
Hello again, I updated to 0.32.0-b01 and the issue is still present. It takes a bit of time scrolling back & forth the message list, sometimes minimizing the app & resuming it, but eventually it starts to fall apart again. Here's a screenshot: Each line is a seperate |
Can confirm the presence of this issue as well on In my case I'm using the Haven't seen this happen on Android either so it's likely |
Thank you for the additional input. This is absolutely very strange, and I don't have an answer why that would be. I wonder if we can reproduce without this library using similar components, e.g. text only and style via composition local |
No worries, I also took a quick glance at the Given it's iOS only though, there's also a slight chance that it's related to an underlying issue in |
Tried to recreate a scenario but it's very inconsistent throughout sessions and I also couldn't catch anything particular from the logging. Strangely enough, I feel like it's also happening less frequently now despite not really having changed anything. If I encounter anything usable in the future, I'll make sure to pick this one up again. |
Hi!
I have a flashcard app, and I use the Markdown() Composable to display the text on the flashcards. On iOS, the text (or certain cases, only parts of it) is shown in black, instead of the color I set.
I am happy to provide any additional info!
PS: Thank you so much for your work! It is tremendously helpful!
Only bold text turns black:
The text was updated successfully, but these errors were encountered: