Skip to content

Commit

Permalink
Add missing chevron on previous-next buttons (Cherry-pick of #237) (#238
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 #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 #189

Co-authored-by: Karla Spuldaro <[email protected]>
  • Loading branch information
Eric-Arellano and karlaspuldaro authored Mar 30, 2023
1 parent 22924b1 commit 5c28440
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 5c28440

Please sign in to comment.