facebook / docusaurus

Easy to maintain open source documentation websites.
https://docusaurus.io
MIT License
56.7k stars 8.53k forks source link

Navbar dropdown flickers when hovering over corner #7046

Closed Kimi-Gao closed 2 years ago

Kimi-Gao commented 2 years ago

Have you read the Contributing Guidelines on issues?

Prerequisites

Description

Navbar dropdown sometimes flickers when switching

https://user-images.githubusercontent.com/12554487/160448887-3fa6240a-ba1b-4d05-b184-2b50c0ba0181.mov

Reproducible demo

https://docusaurus.io/

Steps to reproduce

  1. hover one navbar item with dropdown
  2. move slowly to the other navbar item with dropdown

Expected behavior

No flickering

Actual behavior

flickering as demo shows

Your environment

Self-service

Josh-Cena commented 2 years ago

Could you give your browser version? I can't reproduce this on my end. You sent https://github.com/facebook/docusaurus/issues/4854 which I can't reproduce either—my guess is that this is either browser, device, or OS.

Kimi-Gao commented 2 years ago

@Josh-Cena FYI

For #4854 , I haven't had this issue recently, if it does, I'll update it below this. Thanks!

Josh-Cena commented 2 years ago

Thanks, I can reproduce this now. @lex111 Guess you like little UI quirks, do you want to take a look at this? Probably changing where hover selector is applied would help.

lex111 commented 2 years ago

I guess there is another solution (https://github.com/facebookincubator/infima/pull/230), so please look at the preview site https://deploy-preview-230--infima.netlify.app/demo/