Skip to content

GlossaryTerm: Fix bug with jittery hover effect#23

Merged
mcclowes merged 1 commit intomcclowes:mainfrom
dmitriyrotaenko:main
Apr 14, 2026
Merged

GlossaryTerm: Fix bug with jittery hover effect#23
mcclowes merged 1 commit intomcclowes:mainfrom
dmitriyrotaenko:main

Conversation

@dmitriyrotaenko
Copy link
Copy Markdown

Hi!

First, thank you very much for the plugin. For us, your solution seems to be the most promising and full-fledged on the market right now! We're still exploring it though.


Problem

I noticed that it's possible to cause the so called 'doom flicker' or jittery effect when I hover over the edges of a glossary term. While it's a non critical issue, I assume the UI is better without it 😀

Screen.Recording.2026-01-12.at.23.31.35.mov

This hover state causes a layout shift because the border is added and removed when the cursor is at an element edge.

Fix result | What's done

  • Made element border transparent instead of removing it.
  • Added an underline offset. This way the dotted border of the term and default link underline are on the same level and nicely overlap on hover.
Screen.Recording.2026-01-12.at.23.56.24.mov

Tests

Not sure whether I should test anything here. Please let me know

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 12, 2026

@dmitriyrotaenko is attempting to deploy a commit to the mcclowes Team on Vercel.

A member of the Team first needs to authorize it.

@mcclowes mcclowes merged commit ca056b1 into mcclowes:main Apr 14, 2026
1 check failed
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.

2 participants