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

Feature Request: Make Entire Search Result Item Clickable in PagefindUI #725

Open
mseele opened this issue Oct 14, 2024 · 0 comments
Open

Comments

@mseele
Copy link

mseele commented Oct 14, 2024

Feature Request:
It would be beneficial if PagefindUI allowed the entire search result item to be clickable, rather than just the title. This enhancement would make the user experience more intuitive, as users often expect that clicking anywhere within a search result will navigate them to the linked page.

Use Case:
Currently, only the header of each search result is a link, which can make the search results less intuitive to interact with. Allowing the entire result to be wrapped in a link would improve usability, particularly for mobile users or those with accessibility needs, by expanding the clickable area and reducing the need for precise clicking.

Suggested Implementation:
An option in the PagefindUI configuration to enable a wrapper link around the entire result, or alternatively, allowing for customization of the result template to wrap all elements in an <a> tag pointing to the result URL.

Thank you for considering this feature! It would greatly enhance the flexibility and usability of the PagefindUI component.

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

1 participant