Closed noah-eigenfeld closed 1 year ago
Only works in Text view at time of writing. Will do a little poking to see if the new prop format makes it easier to do all the styling in PDF view as well
Only works in Text view at time of writing. Will do a little poking to see if the new prop format makes it easier to do all the styling in PDF view as well
After a quick check, and also remembering that @dorianmiller is refactoring how styling in PDF view is handled between tooling and components, I've decided to hold off on trying to get this to work in non-text views. That work will still be tackled in https://github.ibm.com/Watson-Discovery/disco-issue-tracker/issues/16131
What do these changes do/fix?
Contributes to https://github.ibm.com/Watson-Discovery/disco-issue-tracker/issues/13113 in combination with https://github.ibm.com/Watson-Discovery/discovery-tooling/pull/9903
Reworks the prop we use to take in highlights with unique colors, such that we can display overlapping highlights with their own designated color
When activating a new highlight that overlaps with several of the highlights in the first screenshot:
How do you test/verify these changes?
Have you documented your changes (if necessary)?
Are there any breaking changes included in this pull request?
The prop
combinedHighlights
replaceshighlightedIdsByColor
, which was recently added. I doubt any users have had time to start using the new, optional prop, but this would technically require them to switch to the new prop during an upgrade.