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(search): keyboard support for enter key #1545

Merged

Conversation

alisonjoseph
Copy link
Member

Closes #1524

Fix so enter key

Changelog

  • moved convertFilePathToUrl out of Menu and into utilites folder
  • convert the file path to url when hitting the enter key for GlobalSearch

Testing

Search for something that has results and hit enter, it should navigate the first item selected in the results list, or the item you have navigated to by keyboard.

@alisonjoseph alisonjoseph requested review from eng618 and a team as code owners November 11, 2024 19:57
@alisonjoseph alisonjoseph requested review from tay1orjones and guidari and removed request for a team November 11, 2024 19:57
Copy link

vercel bot commented Nov 11, 2024

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

Name Status Preview Comments Updated (UTC)
gatsby-theme-carbon ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 11, 2024 8:00pm

Copy link

netlify bot commented Nov 11, 2024

Deploy Preview for gatsby-theme-carbon ready!

Name Link
🔨 Latest commit 6a5cb65
🔍 Latest deploy log https://app.netlify.com/sites/gatsby-theme-carbon/deploys/67326198b7589d0008c85093
😎 Deploy Preview https://deploy-preview-1545--gatsby-theme-carbon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@guidari guidari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Working as expected

@alisonjoseph alisonjoseph merged commit eaf0a12 into carbon-design-system:main Nov 21, 2024
7 checks passed
@alisonjoseph alisonjoseph deleted the fix-search-keyboard branch November 21, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

404 error on the Global search using the Enter key to choose a page
2 participants