Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Dot font color #43

Open
Tails opened this issue Feb 25, 2022 · 1 comment
Open

Set Dot font color #43

Tails opened this issue Feb 25, 2022 · 1 comment

Comments

@Tails
Copy link

Tails commented Feb 25, 2022

I made my dots red using the dotFill config property, but the text color seems to be hardcoded. It would be nice to style the text color using the config. Or can that be done with the 'font' property as well?

@grelas
Copy link

grelas commented Jul 1, 2023

@Tails I was able to do something like below to change text color of the dots

fretboard.wrapper
  .selectAll(".dot-text")
  .filter((p: Position) => {
    return p.note === tonic;
  })
  .attr("fill", "white");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants