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

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

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from

Conversation

cuikaipeng
Copy link
Contributor

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 and others added 6 commits September 19, 2024 16:36
When switching subscription types, the right side may briefly show the content of the previous type before displaying the current type's content after the data request is completed.
…he Tab and arrow keys

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.
Copy link

vercel bot commented Sep 20, 2024

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

A member of the Team first needs to authorize it.

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