Skip to content

[DOM / Skia?][Gallery][WASM] Text input color remains black across both light and dark themes #20747

Open

Description

@jhanvi03

Current behavior 🐛

The text color for all input fields appears as black regardless of the selected theme. Switching between light and dark themes does not update the text color—it stays black in both

Image https://github.com/user-attachments/assets/787c14b4-6f57-4b24-8d24-aae61a1f1a05 Image

Expected behavior 🎯

When theme is set to dark: Text input color should be white
When Theme is set to Light: Text input color should be black

How to reproduce it (as minimally and precisely as possible) 🔬

  1. Open gallery canary in web browser
  2. Set the theme to Dark mode
  3. Type anything in search bar or any field which has text input
  4. observe the Text color
  5. Change the theme and observe the text will remain black

Workaround 🛠️

No response

Renderer 🎨

  • Skia
  • Native

Affected platforms 📱💻🖥️

WebAssembly

Uno.Sdk version (and other relevant versions) 📦

No response

IDE version 🧑‍💻

No response

Anything else we need to know? 💬

No response

Activity

  1. added
    kind/bug
    triage/untriaged
    difficulty/tbd
    platform/wasm 🌐
    area/canary 🐤
    on Jun 9, 2025
  2. agneszitte commented on Jun 9, 2025

    @agneszitte
    Member

    @jhanvi03 is it a latest regression please?

  3. changed the title [-][Skia][Gallery][WASM] Text input color remains black across both light and dark themes[/-] [+][DOM][Gallery][WASM] Text input color remains black across both light and dark themes[/+] on Jun 9, 2025
  4. jhanvi03 commented on Jun 9, 2025

    @jhanvi03
    Author

    @agneszitte After restarting my system, I'm not able reproduce the issue in the Skia Gallery. However, the issue still persists in the Native Gallery (Canary build from 30th May'25). This appears to be a regression in SR3, as it does not occur in the SR2 version (from 29th Mat'25).

  5. agneszitte commented on Jun 9, 2025

    @agneszitte
    Member

    Based on @jhanvi03's feedback, a regression seems to have been introduced between Uno.Sdk 6.1.0-dev.185 and Uno.Sdk 6.1.0-dev.187.

    We need to review the related changes in these versions to identify the cause of the regression, and if it is something that will be introduced with SR3 or was there already before.

    (And also to verify if it is still not happening with skia version as @jhanvi03 was able to reproduce the issue at some point for Skia Gallery version as well)

  6. rajamatt commented on Jun 9, 2025

    @rajamatt
    Contributor

    I was not able to quickly repro this problem with latest master branch or canaries/dev branch in Uno.Gallery. I tried both skia and native rendering.

    I found these changes in Uno that might be related? 0b4512f It looks like the changes might impact TextBox Foregrounds on Wasm and it was made on May 29th, which would fall between the versions you listed. Since I wasn't able to repro locally I couldn't test to see if these changes are actually the problem

  7. MartinZikmund commented on Jun 10, 2025

    @MartinZikmund
    Member

    Indeed, seems like a issue introduced by the IsEnabled change, although suspiciously this was covered by tests already 🤔 . Investigating

  8. MartinZikmund commented on Jun 10, 2025

    @MartinZikmund
    Member

    This is a very odd issue. Testing with the same SDK locally indeed does not show this issue neither with Samples app nor with Gallery DOM. It seems even though the exact same Sdk is used, in the case of the deployed canary the color CSS property is never set on textarea whereas it is set correctly when ran locally instead.

    Not sure how to investigate further, as I am unable to reproduce myself in any way...

  9. 9 remaining items

  10. MartinZikmund commented on Jun 21, 2025

    @MartinZikmund
    Member

    @jeromelaban unfortunately no, it only works for me locally, but not with the staging PR sites either. I am not sure what can be the difference that causes this 🤔 . I am likely not going to be able to figure it out before I leave for PTO, so feel free to check it/assign to someone else to investigate.

  11. removed
    kind/bug
    on Jun 22, 2025
  12. removed their assignment
    on Jun 23, 2025
  13. Jen-Uno commented on Jun 24, 2025

    @Jen-Uno
    Contributor

    @ebariche @Xiaoy312 can one of you take this issue, please?

  14. self-assigned this
    on Jun 27, 2025
  15. ramezgerges commented on Jun 30, 2025

    @ramezgerges
    Contributor

    I can only reproduce on the wasm/dom canary but I'm looking into #20905, maybe we'll get lucky and find it to be the same problem somehow.
    Edit: This is actually misleading. I thought I tested it locally but I couldn't because of some build issues I couldn't resolve. So I'm not sure if it repros only on the canary or locally too.

  16. removed their assignment
    on Jun 30, 2025
  17. ramezgerges commented on Jun 30, 2025

    @ramezgerges
    Contributor

    No, it's not the same issue at all.

  18. MartinZikmund commented on Jul 1, 2025

    @MartinZikmund
    Member

    Yeah, I wasn't able to reproduce locally either... Would you be able to try this one out @Xiaoy312 please?

  19. kazo0 commented on Jul 1, 2025

    @kazo0
    Contributor

    @MartinZikmund / @ramezgerges / @Kunal22shah If we confirm that this is non-Skia only then this will need to be deprioritized

  20. MartinZikmund commented on Jul 1, 2025

    @MartinZikmund
    Member

    @kazo0 yes indeed, it is non-Skia only, but as it is a recent regression, it would be valuable to understand why it happens

  21. airtaxi commented on Dec 31, 2025

    @airtaxi

    I found that this only happens when the project is published. (using wwwroot)
    Run with Debug / Release config with Visual Studio doesn't reproduce this issue.

  22. navio-n commented on Jan 22, 2026

    @navio-n

    Yes. This happens only on the published app. This started to happen several months ago with new versions of Uno. Very annoying because I have published an app. Yes, Debug/Release works.

  23. saadsharif commented on May 11, 2026

    @saadsharif

    Is there any update on this? This is related to our issue #22775

  24. added
    native-only
    on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/canary 🐤native-onlyplatform/wasm 🌐

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions