-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Foundation extra #79
Foundation extra #79
Conversation
These classes add Foundation's pagination arrows to the Next and Previous links. I'm removing the classes since they don't do anything else and pagy already supplies arrows via `pagy_t` and the I18n dictionary.
Thank you! I will look at this ASAP. |
Something I'm wondering about now... I removed the Also, last night I took a first pass at adding the compact and responsive versions. The layout is not right on the compact version and I'm not sure I'll be able to put much more effort in this week. Do you want me to push this into this PR or wait until I have time to look deeper? |
I see you are making progress! The |
Layout on `compact` needs work I need to add the `next` and `pre` classes back to all foundation helpers
Ok, I added the I don't currently have a simple test app -- I've just been testing inside my client project where I was integrating By the way, I haven't tested the haml template yet since I don't use it. I did however compare the output of slim and erb against the helper method. |
Thank you! |
`link.call` was inserting the a anchor tag to the current page, which isn't needed. Having the anchor tag within the `current` `li` was also causing issues with Zurb Foundation styling. The `current` background was too large and the text was showing up black instead of white.
Hi @dwieringa, |
Hi @ddnexus, I'm using the helper in production now and it seems to be working well. Correct, in the One thought I've had a few times (but I don't have a strong opinion)... would it be better for the compact and responsive helpers to be moved to the respective frontend extra's? Then the user would choose the frontend extra (eg foundation) and get the default+compact+responsive helpers...vs choosing I haven't updated the |
Hi @dwieringa, |
Add pagy_nav_foundation helpers and templates
Added a few things (ba7d046): now it should be complete and work well. Thanks. |
@dwieringa |
Thanks @ddnexus. The reorganization looks good. I switched to using your latest release. The only thing I noticed is a copy/paste error on the foundation docs page (https://ddnexus.github.io/pagy/extras/foundation). It states "This extra adds one nav helpers to the Pagy::Frontend module", but should probably say "adds three nav helpers", like bootstrap does. |
oh... yes. good catch! Thanks. |
Adds support for Zurb Foundation 6