Skip to content

Commit

Permalink
fix Tome_Subheading h4 links
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanatkn committed Apr 18, 2024
1 parent d7e5fb9 commit 60a6ec1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/blue-coats-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ryanatkn/fuz": patch
---

fix `Tome_Subheading` h4 links
4 changes: 2 additions & 2 deletions src/lib/Tome_Subheading.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
{/snippet}

<style>
h3 {
:is(h3, h4) {
position: relative;
}
/* TODO @multiple how can this be done composably? currently using `:global` at usage site - ideally we'd continue to use :hover instead of JS */
h3:hover :global(.hashlink) {
:is(h3, h4):hover :global(.hashlink) {
opacity: 1;
}
</style>

0 comments on commit 60a6ec1

Please sign in to comment.