Commit 5c94d10f authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Add selectors for styling nested highlights by data attributes

parent d9406dcd
......@@ -100,6 +100,23 @@
& > .#{$clusterKey} > .#{$clusterKey} {
--highlight-color: var(--hypothesis-#{$clusterKey}-thirdColor);
}
// Style highlights based on data attributes set by `highlight-clusters`
// This is available on any document type/integration that supports cluster
// highlights.
// Styling for any cluster-level depth > 1
&[data-cluster-level] {
--highlight-color: var(--hypothesis-#{$clusterKey}-thirdColor);
}
&[data-cluster-level='1'] {
--highlight-color: var(--hypothesis-#{$clusterKey}-secondColor);
}
&[data-cluster-level='0'] {
--highlight-color: var(--hypothesis-#{$clusterKey}-color);
}
}
}
......
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