Skip to content

Commit

Permalink
Correctly select only Furo's own svg in related pages nav
Browse files Browse the repository at this point in the history
This ensures that we don't flip other svgs injected into the page.
  • Loading branch information
pradyunsg committed Jul 22, 2022
1 parent 8f7d63a commit 8eba649
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/furo/assets/styles/components/_footer.sass
Expand Up @@ -64,8 +64,8 @@ footer
color: var(--color-link)
text-decoration-color: var(--color-link-underline)

svg,
svg > use
svg.furo-related-icon,
svg.furo-related-icon > use
flex-shrink: 0

color: var(--color-foreground-border)
Expand Down
4 changes: 2 additions & 2 deletions src/furo/theme/furo/page.html
Expand Up @@ -102,12 +102,12 @@
</div>
<div class="title">{{ next.title }}</div>
</div>
<svg><use href="#svg-arrow-right"></use></svg>
<svg class="furo-related-icon"><use href="#svg-arrow-right"></use></svg>
</a>
{%- endif %}
{% if prev -%}
<a class="prev-page" href="{{ prev.link }}">
<svg><use href="#svg-arrow-right"></use></svg>
<svg class="furo-related-icon"><use href="#svg-arrow-right"></use></svg>
<div class="page-info">
<div class="context">
<span>{{ _("Previous") }}</span>
Expand Down

0 comments on commit 8eba649

Please sign in to comment.