Changing text field caret

I figured out how to change the caret color using uss code and now I think the caret is too small. Is there a way to change the size?

Also, the cursor disappears based on the number of characters that are in my textfield, is this a known issue?
6904700--808514--Untitled 2.png
The caret is at the end of the characters in both cases

1 Like

Just curious how you did this? Thanks!

Sure, here is the code I use:

 #CommandInput #unity-text-input {
    --unity-cursor-color: rgb(255, 255, 255);
}

My TextField has a name/id: #CommandInput and then I use the #unity-text-input id to specifically target the element inside the TextField that you can’t change without uss.

4 Likes

Thank you!

1 Like