Skip to content

Commit

Permalink
Fix link accessibility (#235)
Browse files Browse the repository at this point in the history
* Fix link accessibility

* Update snapshots after changing CSS
  • Loading branch information
amaximus authored Oct 8, 2024
1 parent 778057b commit a422c53
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions __tests__/__snapshots__/basic.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions __tests__/__snapshots__/remaining.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 6 additions & 1 deletion src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -135,4 +140,4 @@ export default css`
width: 100%;
height: 101%;
}
`;
`;

0 comments on commit a422c53

Please sign in to comment.