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

how to prevent adding blue border to note when we click to note #1078

Open
vunguyen260798 opened this issue Feb 26, 2025 · 2 comments
Open

Comments

@vunguyen260798
Copy link

Image
 var visualObj = ABCJS.renderAbc("playback-paper", theABC, 
			{
				add_classes: true,
				clickListener: NoteClickListener,
				selectTypes: ["note"],
		})[0];

I don't want highlight the blue border like that when I click to note, anyone can help me?

@samuelbradshaw
Copy link

samuelbradshaw commented Feb 26, 2025

If you have CSS styles on the page, you could try adding this:

g {
  stroke: none;
}

That will prevent a stroke/border from showing for all SVG groups (including notes).
If you want to only hide the stroke on notes, you can do this:

g[data-name="note"] {
  stroke: none;
}

Or maybe more specifically, on highlighted notes:

g[data-name="note"].abcjs-highlight {
  stroke: none;
}

@vunguyen260798
Copy link
Author

@samuelbradshaw thank for your support, i've already try 3 way u suggest, but it's not work at all

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