willb335 / chessboardjsx

:black_square_button: Chessboard built for React
https://chessboardjsx.com
MIT License
267 stars 79 forks source link

Not filled Rook / Queen #71

Open choozn opened 3 years ago

choozn commented 3 years ago

For what ever reason the black Rook or the black Queen sometimes loses its fill SVG property. It only happens with the black Rook or the black Queen in the 8th Line. Sometimes even both black Rooks lose their color.

Not filled Rook

Not filled Rook

Not filled Queen

Down below is the broken SVG code.

`

`
willb335 commented 3 years ago

Can you swap out the pieces for the fix? Example with the pieces prop: https://codesandbox.io/s/21r26yw13j?from-embed=&file=/src/integrations/CustomBoard.js

willb335 commented 3 years ago

pehaps pass that svg into the pieces prop for the black rook and change stroke: rgb(255, 255, 255);; to stroke: rgb(0, 0, 0);