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

Fix cursor:pointer style on an alignments feature detail clickable link #4438

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

cmdcolin
Copy link
Collaborator

@cmdcolin cmdcolin commented Jun 14, 2024

I noticed that code in the alignment details widget (plugins/alignments/src/AlignmentsFeatureDetail/SuppAlignmentsLocStrings.tsx) had links with mouseover where the cursor did not use the pointer style, which turns out to be due to missing href prop on the Link element. For Link elements without a true href (e.g. they are more link link buttons), we can use href="#" and then event.preventDefault in the handler.

The alternative is not having any href and then using the makeStyles to restore the cursor:pointer style, but i think the href="#" is a bit more idiomatic. Just gotta remember to event.preventDefault in those cases.

@cmdcolin cmdcolin merged commit 2c6c207 into main Jun 14, 2024
10 checks passed
@cmdcolin cmdcolin deleted the pointer_cursor branch June 14, 2024 13:23
@cmdcolin cmdcolin added the bug Something isn't working label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant