Feature propose: Make whole search result area clickable #285
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, I would like to propose a change to search plugin. Currently, only the title of search result is clickable. It might sound a bit weird for users as the search content is plain text and cannot redirect them.
This PR will make the complete area clickable by wrapping the whole area with a tag.
One thing to notice is that the search keyword will be rendered using theme color, the same color when mouse hovered. To distinguish them, I made the keyword also bold.
How it looks when displaying search result:
How it looks when mouse hovered:
Should work fine with all default themes. But perhaps not a very well-designed. Let me know if you have any feedback.
Please makes sure these boxes are checked before submitting your PR, thank you!
master
branch.