Rewrite the button templates

Created on 14 November 2019, over 4 years ago
Updated 23 June 2023, about 1 year ago

I try to customize the button with the module template, but my style is not applied because the template uses ul and li

Can you fill that with div ?

{% if items.next %}
<ul{{ attributes }}>
  <li class="pager__item">
    <a class="btn btn-outline-dark" href="{{ items.next.href }}" title="{{ 'Go to next page'|t }}" rel="next">{{ options.button_text }}</a>
  </li>
</ul>
{% endif %}

If I make the changes, the page is fully reloaded each time I click on the button :

{% if items.next %}
<div{{ attributes }}>
  <div class="pager__item">
    <a class="btn btn-outline-dark" href="{{ items.next.href }}" title="{{ 'Go to next page'|t }}" rel="next">{{ options.button_text }}</a>
  </div>
</div>
{% endif %}
✨ Feature request
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France zenimagine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    Is this still an issue with 2.0.x? If yes, please update the version and set the status active again with clear steps or (best) with a test showing what's broken.

    2.0.x is the active development branch.

    If nobody replies, we should assume this is fixed and close this issue outdated.

    Thanks!

Production build 0.69.0 2024