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

Restyle test.html show-tokens with hover class names and fatter borders. #3812

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Querela
Copy link

@Querela Querela commented Jul 11, 2024

This change improves the "Show tokens" styling of test.html. It increases border sizes but most importantly show the token class names on hover which makes testing and debugging grammars a bit easier (to not use the browser dev tools).

Tooltips: (on the bottom) for the current token, (on top) for tokens that contain tokens

Example:
grafik
compared to
grafik

The generic token class can't easily be stripped using CSS, content: attr(class);, unfortunately.

Copy link

No JS Changes

Generated by 🚫 dangerJS against f20a8d6

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

Successfully merging this pull request may close these issues.

None yet

1 participant