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

Update the search Articles Icon based on the User's OS and situation #43

Open
dahighsky opened this issue Oct 9, 2024 · 1 comment
Open

Comments

@dahighsky
Copy link

image

  1. Issue Description:
  • The icon to the right of the text box displays "Command K" by default, even for users on Windows and Linux operating systems. This leads to confusion among users who are not familiar with macOS keyboard shortcuts.
  • Additionally, the icon remains as "Command K" while typing, with no indication of what users are supposed to do if their input does not match any article names. Ideally, the icon should dynamically adjust based on the user's operating system and change to something like "Return," "Enter," or a "Search" icon when searching is expected.
  1. Steps to Reproduce:
  • Go to Anubhav homepage.
  • Focus on the text box with the "Command K" icon to the right.
  • Start typing in the text box.
  • Notice that the "Command K" icon remains unchanged, regardless of the operating system or input provided.
  1. Expected Behavior:
  • The icon should dynamically adjust based on the user's operating system (e.g., "Ctrl K" for Windows/Linux).
  • When the user starts typing and no matching articles are found, the icon should change to a relevant action, such as "Return," "Enter," or a "Search" icon, indicating that the user can press Enter or tap on the icon to search.
  1. Steps to Fix:
  • Detect the user's operating system and update the "Command K" icon accordingly:
  • macOS: "Command K"
  • Windows/Linux: "Ctrl K"
  • While the user is typing, if there is no matching article, update the icon to indicate an actionable behavior such as "Return," "Enter," or a "Search" icon.
@Ravijhabit
Copy link
Contributor

Hi @dahighsky, Are you working on this issue ?

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

No branches or pull requests

2 participants