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

Add better highlighting for horizontal timeline events #41

Merged
merged 1 commit into from
May 6, 2024

Conversation

seanlowe
Copy link
Owner

@seanlowe seanlowe commented May 6, 2024

Release: v2.1.7

Changes:

  • added event listeners onto timeline events to run some logic when items are being hovered on
    • adds a custom CSS class .runtime-hover on mouse enter, and removes it when the mouse leaves the event
    • adds some logic to set a CSS variable with the particular event's background color
  • added styling rules for CSS class .runtime-hover that takes into account the current background color (that was pushed into a CSS variable by the event listeners)
  • allowed for timeline event objects to have a copy of the data from the user-created events (HTML/FM)

Resolves #34

@seanlowe seanlowe merged commit ed03074 into main May 6, 2024
1 check passed
@seanlowe seanlowe deleted the better-item-highlighting branch May 25, 2024 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant