Skip to content

Commit

Permalink
DOCSTOOLS-190: exclude svg from highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
yndx-birman committed Jun 16, 2022
1 parent 0ecf4c1 commit 7c146d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/SearchBar/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ export const CLASSNAME_SELECTED = 'dc-search-highlighted_selected';
export const HIGHLIGHT_OPTIONS = {
element: 'span',
className: CLASSNAME,
exclude: [`.${CLASSNAME}`], // Exclude the elements to highlight to avoid duplicating the highlight
exclude: [
`.${CLASSNAME}`, // Exclude the elements to highlight to avoid duplicating the highlight
'svg *'
],
};

0 comments on commit 7c146d5

Please sign in to comment.