I am using Rails, Bulma css framework, and pagy gem.
<nav class="pagination">
<span class="" style=" margin-left:auto; margin-right:auto; font-weight:700;" >
<%== pagy_prev_link(@pagy, '‹ Previous', ' id="" class="pagination-link " style="" ') if @pagy.pages > 1 %>
</span>
<span class="" style="margin-left:auto; margin-right:auto; font-weight:700; ">
<%== pagy_next_link(@pagy, 'Next ›', 'id="" style="" class="pagination-link " ') if @pagy.pages > 1 %>
</span>
</nav>
The problem is that no matter what I try, I can't customize the look of the next and prev buttons. Right now the buttons show as bold-font Next and Prev, with Next in default blue, as there are more than 1 pages. I want to turn it into another color and also make it look like button with Bulma. I've tried inputting "pagination-link" to span; to controller where the pagy is; getting rid of span; didn't work.
What can I do? I'd really appreciate any help.
You can custom the bulma pagy nav by create
app/views/pagy/_bulma_nav.html.erbwith content:Then include it in view, example file
app/views/pages/home.html.erb:And simple controller such as
app/controllers/pages_controller.rb:You will get this successful result: