Skip to content

Commit

Permalink
used chip class for materialized combo nav
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed May 12, 2021
1 parent 064a2b5 commit f762aca
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 96 deletions.
10 changes: 5 additions & 5 deletions lib/pagy/extras/materialize.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ def pagy_materialize_combo_nav_js(pagy, deprecated_id=nil, pagy_id: nil, link_ex
style = ' style="vertical-align: middle"'
input = %(<input type="number" class="browser-default" min="1" max="#{p_pages}" value="#{p_page}" style="text-align: center; width: #{p_pages.to_s.length+1}rem;">)

%(<ul#{p_id} class="pagy-materialize-combo-nav-js pagination btn" role="navigation" aria-label="pager" style="padding-right: 0" #{
pagy_json_attr pagy, :combo_nav, p_page, pagy_marked_link(link)
%(<ul#{p_id} class="pagy-materialize-combo-nav-js pagination chip" role="navigation" aria-label="pager" style="padding-right: 0" #{
pagy_json_attr pagy, :combo_nav, p_page, pagy_marked_link(link)
}>#{
pagy_materialize_prev_html pagy, link, style
pagy_materialize_prev_html pagy, link, style
}<li class="pagy-combo-input">#{
pagy_t 'pagy.combo_nav_js', page_input: input, count: p_page, pages: p_pages
pagy_t 'pagy.combo_nav_js', page_input: input, count: p_page, pages: p_pages
}</li>#{
pagy_materialize_next_html pagy, link, style
pagy_materialize_next_html pagy, link, style
}</ul>)
end

Expand Down
Loading

0 comments on commit f762aca

Please sign in to comment.