diff --git a/src/index.ts b/src/index.ts index 37bc9de..d814a5c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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;