Skip to content

Commit

Permalink
Add missing chevron on previous-next buttons (Qiskit#237)
Browse files Browse the repository at this point in the history
This PR adds missing chevron svg file used in footer Previous/Next
buttons (original image accidentally removed in Qiskit#138 ).
It also updates references from `chevron-right-orange` to
`chevron-right-purple`, matching the fill colour used.

Updated footer rendering:

![image](https://user-images.githubusercontent.com/25207344/228622405-0e8a0ac2-f1b2-44af-be2c-85ee4ac48d52.png)

Fixes Qiskit#189
  • Loading branch information
karlaspuldaro authored and Eric-Arellano committed Mar 29, 2023
1 parent 22924b1 commit d5ff35d
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 3 deletions.
4 changes: 2 additions & 2 deletions qiskit_sphinx_theme/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<!-- NEXT/PREVIOUS BUTTONS -->
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
{% if next %}
<a href="{{ next.link|e }}" class="btn btn-neutral float-right" title="{{ next.title|striptags|e }}" accesskey="n" rel="next">{{ _('Next') }} <img src="{{ pathto('_static/images/chevron-right-orange.svg', 1) }}" class="next-page"></a>
<a href="{{ next.link|e }}" class="btn btn-neutral float-right" title="{{ next.title|striptags|e }}" accesskey="n" rel="next">{{ _('Next') }} <img src="{{ pathto('_static/images/chevron-right-purple.svg', 1) }}" class="next-page"></a>
{% endif %}
{% if prev %}
<a href="{{ prev.link|e }}" class="btn btn-neutral" title="{{ prev.title|striptags|e }}" accesskey="p" rel="prev"><img src="{{ pathto('_static/images/chevron-right-orange.svg', 1) }}" class="previous-page"> {{ _('Previous') }}</a>
<a href="{{ prev.link|e }}" class="btn btn-neutral" title="{{ prev.title|striptags|e }}" accesskey="p" rel="prev"><img src="{{ pathto('_static/images/chevron-right-purple.svg', 1) }}" class="previous-page"> {{ _('Previous') }}</a>
{% endif %}
</div>

Expand Down
2 changes: 1 addition & 1 deletion qiskit_sphinx_theme/static/css/theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 66 additions & 0 deletions qiskit_sphinx_theme/static/images/chevron-right-purple.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d5ff35d

Please sign in to comment.