I have an application in javafx and I'm using style sheets, I have a toggle group and I have a color of the property selected (green) I have a focus that seems to be only a blue border, but when I pass the focus it loses the green color of the selected and no difference is noticed.
My question is how to make that when the focus reaches the selected control the color of the selected is not entered, or what would be the property to have focus + selected and give it a different appearance:
#toggleG:selected{
-fx-background-color:#adff2f;
-fx-text-fill:black;
-fx-font-weight:bold;
-fx-underline-color:red;
}
#toggle:hover{
-fx-background-color:#adff2f;
-fx-text-fill:black;
-fx-font-weight:bold;
}
#toggle:focused{
-fx-focus-color:blue;
-fx-faint-focus-color:#blue;
-fx-inner-border:transparent;
-fx-body-color:#ececec;
-fx-background-color: -fx-faint-focus-color, -fx-focus-
color, -fx-inner-border, -fx-body-color;
-fx-background-insets: -1, -0.3, 1, 1;
-fx-background-radius: 2px;