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

feat(highlight): use helper from is.js instead of custom implementation #888

Merged
merged 5 commits into from
Jan 26, 2022

Conversation

dhayab
Copy link
Member

@dhayab dhayab commented Jan 25, 2022

Summary

Update the implementation of <ais-highlight> to directly use the helper from InstantSearch.js and normalize the behaviour between the two flavours.

Result

<ais-highlight> now supports the tagName property. To prevent breaking changes, and until this is added back to IS.js, there is still a custom fallback logic (it returns the unhighlighted attribute value when it exists but is not in _highlightResult).

@netlify
Copy link

netlify bot commented Jan 25, 2022

✔️ Deploy Preview for angular-instantsearch ready!

🔨 Explore the source changes: 6361960

🔍 Inspect the deploy log: https://app.netlify.com/sites/angular-instantsearch/deploys/61f14775ec18450008e38d04

😎 Browse the preview: https://deploy-preview-888--angular-instantsearch.netlify.app

@dhayab dhayab requested review from a team, sarahdayan and Haroenv and removed request for a team January 25, 2022 14:55
@Haroenv Haroenv mentioned this pull request Jan 26, 2022
@dhayab dhayab merged commit 33b7be3 into develop Jan 26, 2022
@dhayab dhayab deleted the feat/update-highlight-implementation branch January 26, 2022 13:27
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

Successfully merging this pull request may close these issues.

None yet

4 participants