Skip to content

feat: variables for all code colors, coherent hover behavior - #954

Merged
david-christiansen merged 10 commits into
mainfrom
warnings-fixes
Aug 13, 2026
Merged

feat: variables for all code colors, coherent hover behavior#954
david-christiansen merged 10 commits into
mainfrom
warnings-fixes

Conversation

@david-christiansen

Copy link
Copy Markdown
Collaborator

This PR fixes limitations in highlighting behavior:

  • The colors of messages are more consistently controlled by variables, elminating a problem with warning hovers and making it easier to configure all colors.

  • Hover highlights for nested messages are fixed, and their CSS simplified.

  • When message and token hover spans coincide, they are collapsed, rather than having one of them win over the other. Before, this was done only for multiple message spans.

  • Some edge cases related to tooltip precedence are fixed.

An added gallery page in the tests demonstrates these combinations.

This PR fixes limitations in highlighting behavior:

* The colors of messages are more consistently controlled by
variables, elminating a problem with warning hovers and making it
easier to configure all colors.

* Hover highlights for nested messages are fixed, and their CSS
simplified.

* When message and token hover spans coincide, they are collapsed,
rather than having one of them win over the other. Before, this was
done only for multiple message spans.

* Some edge cases related to tooltip precedence are fixed.

An added gallery page in the tests demonstrates these combinations.
@david-christiansen
david-christiansen added this pull request to the merge queue Aug 13, 2026
Merged via the queue into main with commit aa44714 Aug 13, 2026
12 checks passed
@david-christiansen
david-christiansen deleted the warnings-fixes branch August 13, 2026 10:59
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.

1 participant