From 546c647234749cb39710563a9434b1da71156e7e Mon Sep 17 00:00:00 2001 From: Josh Creek Date: Sun, 9 Oct 2022 19:36:42 +0100 Subject: [PATCH] feat(#17): Change colour of selected names --- src/index.ts | 1 + 1 file changed, 1 insertion(+) 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;