Merge pull request #20 from jcreek/17-when-highlightedgreyed-out-invert-the-name-text-to-white

feat(#17): Change colour of selected names
This commit is contained in:
Josh Creek
2022-10-09 19:37:30 +01:00
committed by GitHub
+1
View File
@@ -180,6 +180,7 @@ function drawWheel() {
.on('end', () => {
// mark question as seen
d3.select(`.slice:nth-child(${picked + 1}) path`).attr('fill', '#111');
d3.select(`.slice:nth-child(${picked + 1}) text`).attr('fill', '#ffffff');
// populate question
d3.select('#question h1').text(data[picked].label.trim());
oldrotation = rotation;