Style the icons in JavaFx when use ":selected" is not working?
salmantln opened this issue · comments
Style the icons in JavaFx when use ":selected" is not working? Or am i doing something wrong. I try using
".button .ikonli-font-icon:selected {
-fx-icon-code: "gmi-file-download";
-fx-icon-color: red;
-fx-icon-size: 20px;
}" in my stylesheet but it doesn't seem to work.
You need to manually handle adding / removing the "selected" pseudo class to your icon, else that won't work.