diff --git a/__tests__/__snapshots__/basic.test.ts.snap b/__tests__/__snapshots__/basic.test.ts.snap index 9b852ff..90ecc14 100644 --- a/__tests__/__snapshots__/basic.test.ts.snap +++ b/__tests__/__snapshots__/basic.test.ts.snap @@ -198,6 +198,11 @@ exports[`SankeyChart matches a simple snapshot 2`] = ` font-style: italic; font-size: inherit; } + .box .label .name a { + position: sticky; + z-index: 100; + color: var(--primary-text-color); + } .connectors { position: absolute; top: 0; diff --git a/__tests__/__snapshots__/remaining.test.ts.snap b/__tests__/__snapshots__/remaining.test.ts.snap index 69bc524..1d9a546 100644 --- a/__tests__/__snapshots__/remaining.test.ts.snap +++ b/__tests__/__snapshots__/remaining.test.ts.snap @@ -349,6 +349,11 @@ Blaa" class=""> font-style: italic; font-size: inherit; } + .box .label .name a { + position: sticky; + z-index: 100; + color: var(--primary-text-color); + } .connectors { position: absolute; top: 0; diff --git a/src/styles.ts b/src/styles.ts index 649e6e4..d5c1029 100644 --- a/src/styles.ts +++ b/src/styles.ts @@ -109,6 +109,11 @@ export default css` font-style: italic; font-size: inherit; } + .box .label .name a { + position: sticky; + z-index: 100; + color: var(--primary-text-color); + } .connectors { position: absolute; top: 0; @@ -135,4 +140,4 @@ export default css` width: 100%; height: 101%; } -`; \ No newline at end of file +`;