mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
f06de99410
REF https://linear.app/ghost/issue/PLG-284 When clicking on a replied-to reference, you scroll up to the parent comment. To guide the eye, the parent comment is highlighted with a yellow background. - added `dispatchAction` to the `ActionHandler` function call arguments, allowing actions to call other actions - added `commentIdToHighlight` app context state and associated `highlightComment` action to set it - updated `Comment` (and related sub-components) to match `commentIdToHighlight` when rendering to determine whether to apply highlighting of comment contents - for the highlight, `<mark>` is used to wrap any paragraphs inside the comment contents and appropriate tailwind highlight animation classes applied - uses the inline `<mark>` element so that background highlight only applies to the text bounding boxes rather than the entire wrapping element --------- Co-authored-by: Ronald Langeveld <hi@ronaldlangeveld.com> |
||
---|---|---|
.. | ||
e2e | ||
utils |