Skip to content

Commit

Permalink
Make heading permalink hashes hidden when not hovered
Browse files Browse the repository at this point in the history
Should fix a bug where crawlers like Google Bot thinks this is a part of the heading, leading to it being visible in search results.
  • Loading branch information
caendesilva committed Feb 2, 2024
1 parent 2802dfd commit f8106c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/hydefront/sass/docs/heading-permalinks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@

.heading-permalink {
opacity: 0;
visibility: hidden;
margin-left: 0.25rem;
transition: opacity 0.3s ease;
padding: 0 0.25rem;
scroll-margin: 1rem;
&:hover, &:focus {
opacity: 1;
visibility: visible;
filter: unset;
}
}
Expand Down

0 comments on commit f8106c8

Please sign in to comment.