I have a jsfiddle here - http://jsfiddle.net/morettmt/v7mx737w/2/
I can chnage the fill color by styling the grouping
Is there a way to add my own class to the svg and use that in my css
.triangle{
fill: red;
}
I have a jsfiddle here - http://jsfiddle.net/morettmt/v7mx737w/2/
I can chnage the fill color by styling the grouping
Is there a way to add my own class to the svg and use that in my css
.triangle{
fill: red;
}
Your problem is that the colour from your
class
style, was being over-ridden by the explicitfill
you had on the child<g>
element. If you remove that, your CSS works.If you want to have the class in the SVG you'll have to do something like this