Closed m-abdurrehman closed 3 years ago
There is no need to change the html and break all the pagy based apps! Tailwind can apply any style to anything.
You can look into apps that use tailwind with pagy in order to get working examples to copy from or ask support for using Tailwind in the proper channels.
Thanks for your response!
If you feel it will break the apps we can keep the anchor tags in span
and only remove/set href
in spans.
Can you share any app that is behaving as I have posted. I have posted on the support channel.
I think the issue should be re-understand deeply.
thanks
I followed https://ddnexus.github.io/pagy/extras/tailwind#gsc.tab=0 to apply styling to my view to match looking the same as of my site.
my styling
I try to make the complete box clickable by apply padding on the
span
andanchor
tag but not working as expected.HTML generated for the above template is
Anybody with a solution/suggestion for this?
In my opinion, if
anchor tag
surroundsspan
that may solve the issue.An update may require only in https://github.com/ddnexus/pagy/blob/9a14400695d6a972d11efc43f5fd3f4f8194ac43/lib/templates/nav.html.haml https://github.com/ddnexus/pagy/blob/9a14400695d6a972d11efc43f5fd3f4f8194ac43/lib/templates/nav.html.slim https://github.com/ddnexus/pagy/blob/9a14400695d6a972d11efc43f5fd3f4f8194ac43/lib/templates/nav.html.erb