Skip to content

CSS Class for Matched Search Substring

Compare
Choose a tag to compare
@MuseofMoose MuseofMoose released this 18 Oct 00:15
· 32 commits to master since this release

Updated the search function to break down the display name of search results and add a CSS class to the matched substring. See the changelog below for details.

Changes:

  • Search substring styling added.
    • Now, when you start typing into the input to filter your search results, the matched substring on each option is wrapped in a span tag with a unique class.
    • The default styling is simply a greater font-weight (bold) but you can customize the class to suit your preference.