That is my stackblitz/codepen: https://stackblitz.com/edit/svgtest?file=index.tsx
When I hover over the svg rectangles the hover event triggers then because the parent svg element of the facade/roof, so I expected the border to be added to the svg element, but its not! Instead all the svg children elements own has that border set.
Why this?
OnMouseOver is registred for the svg element as you can see here:
return <svg
onMouseOver={e => this.props.currentMounting.onMountingHoveredOver(e)}
onMouseOut={e => this.props.currentMounting.onMountingHoveredOut(e)}
onClick={e => this.props.currentMounting.onMountingSelected(e.currentTarget.id)}
opacity={this.props.currentMounting.opacity}
style={{ fill: 'red' }}
id={this.props.currentMounting.id}>
<rect x="0" y="0" height="60" width="60" />
<rect x="70" y="0" height="60" width="60" />
</svg>
But despite that all the rect elements display the border when I hover over them!?