Folo icon indicating copy to clipboard operation
Folo copied to clipboard

fix:Regarding the style issue of selecting subscription types using the Tab and arrow keys

Open cuikaipeng opened this issue 1 year ago • 1 comments

When a subscription type is selected with the mouse and then switched using the tab key or arrow keys, the background color of the subscription type does not change correctly, always remaining dark for the initially clicked type. I noticed in the code that the style includes

focus-visible:bg-zinc-500/30 focus-visible:!outline-none

which suggests that the intended behavior is for the background color to change based on the currently focused subscription type when using the tab key or arrow keys. However, the focus-visible style may not be applied correctly due to keyboard event listeners in the code. To address this, I introduced a variable to track whether the switch is made via the tab key or arrow keys.

cuikaipeng avatar Sep 20 '24 07:09 cuikaipeng

@cuikaipeng is attempting to deploy a commit to the RSS3 Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Sep 20 '24 07:09 vercel[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
follow ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 21, 2024 10:38am

vercel[bot] avatar Sep 21 '24 10:09 vercel[bot]