Commit 1d908688 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Enable clustered highlighting in the PDF integration

parent 3fa481a1
......@@ -202,6 +202,11 @@ export class PDFIntegration extends TinyEmitter {
return canDescribe(range);
}
/* istanbul ignore next */
canStyleClusteredHighlights() {
return true;
}
/**
* Generate selectors for the text in `range`.
*
......
......@@ -31,14 +31,9 @@
}
// Configure highlight styling.
// Map `--hypothesis-*` root values to local `--highlight-*` values
.hypothesis-highlight,
.hypothesis-svg-highlight {
--highlight-color: var(--hypothesis-highlight-color);
--highlight-color-focused: var(--hypothesis-highlight-focused-color);
}
.hypothesis-highlight {
--highlight-color: var(--hypothesis-highlight-color);
--highlight-blend-mode: var(--hypothesis-highlight-blend-mode);
--highlight-decoration: var(--hypothesis-highlight-decoration);
......@@ -56,7 +51,8 @@
// Configure clustered highlight styling. The `.hypothesis-highlights-clustered`
// class is managed by `highlight-clusters`
.hypothesis-highlights-clustered .hypothesis-highlight {
.hypothesis-highlights-clustered .hypothesis-highlight,
.hypothesis-highlights-clustered .hypothesis-svg-highlight {
// When clustered highlights are active, use an opaque blue for focused
// annotations so we don't end up with a funny color mix
--highlight-color-focused: var(--hypothesis-color-blue);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment