Highlight
Use the Highlight component to highlight one or more substrings within a text.
Changes to Highlight. The full components changelog also lists package-wide and cross-cutting entries.
3.11.0
Updates
Typography
- You can now set the
idprop onBlockquote,Code,Emphasis,ExternalLink,Highlight,List,Strikethrough, andStrong.
1.15.0
Updates
- Now uses CSS Custom Highlight API instead of the
<mark>HTML element. (APPDEV-14731)
1.5.0
- Now preserves whitespace around the highlighted term. (APPDEV-12895)
1.4.0
- Added support for using
FormattedMessagewithin theHighlightcomponent. (APPDEV-12687) - Highlighted text reflows correctly when wrapped inside a smaller container. (APPDEV-12666)
1.2.0
- Whitespaces are preserved when the
Highlightcomponent is rendered inside an element styled withdisplay: 'flex'. (APPDEV-12362)