I'm using SVG for an image in a button. But I'm not able to fill in color for it through CSS. Below is the code to render a button.
<Button onAction="#closeApplication" >
<graphic>
<SVGPath content="M10,16 10,0 0,8z" styleClass="button‐icon‐shape" />
</graphic>
</Button>
here is the css
.button-icon-shape SVGPath{
-fx-fill: red;
}