mirror of
https://github.com/jcreek/SelectionWheel.git
synced 2026-07-12 18:53:45 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user