On Mon, 29 Jun 2026 17:18:45 GMT, Ziad El Midaoui <[email protected]> 
wrote:

>> This fixes a `TextInputControl` styling issue where prompt text is hidden 
>> when an empty text input control receives focus.
>> The fix removes the focused-state override `-fx-prompt-text-fill: 
>> transparent;` so focused empty text inputs continue to use the normal Modena 
>> prompt text fill.
>> The prompt text now stay visible when a text input control is focused.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Ziad El Midaoui has updated the pull request incrementally with two 
> additional commits since the last revision:
> 
>  - Minor end of file space issue
>  - Added Copyright header to TextInputControlCaspianTest

modules/javafx.controls/src/main/resources/com/sun/javafx/scene/control/skin/modena/modena.css
 line 1303:

> 1301:     -fx-background-insets: -0.2, 1, -1.4, 3;
> 1302:     -fx-background-radius: 3, 2, 4, 0;
> 1303:     -fx-prompt-text-fill: transparent;

One note here, maybe @andy-goryachev-oracle can tell:

This is still done for the RTA:


.rich-text-area:focused {
    -fx-prompt-text-fill: transparent;
}


Is this something we should solve as well?

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/2184#discussion_r3498444069

Reply via email to