Skip to content
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

[1.7.15] Pagination styles no longer applying. #1582

Open
zackgilbert opened this issue Jul 3, 2024 · 10 comments
Open

[1.7.15] Pagination styles no longer applying. #1582

zackgilbert opened this issue Jul 3, 2024 · 10 comments

Comments

@zackgilbert
Copy link

I upgraded a project from 1.7.14 to 1.7.15 and noticed that the styles are no longer applying to pagination:

What is should look like (1.7.14 version):
Screenshot 2024-07-03 at 4 07 27 PM

What 1.7.15 results in:
Screenshot 2024-07-03 at 4 04 04 PM

@jagthedrummer
Copy link
Contributor

@zackgilbert, I just tested this in 1.7.15 and pagination links are showing up correctly styled for me.

CleanShot 2024-07-09 at 11 03 50

Can you try inspecting the pagination elements to make sure that pagy-* class names are present in the markup?

And can you check the compiled stylesheets linked in your app to see if the CSS rules for them are also present?

I suspect one of the two will be missing, but I'm not sure why.

@zackgilbert
Copy link
Author

Interesting. Will take a look and see if I can figure out what's going on. Thanks.

@zackgilbert
Copy link
Author

zackgilbert commented Jul 10, 2024

Very strange...

At first glance, the styles are NOT matching the classes in the HTML:
Screenshot 2024-07-10 at 12 06 11 PM
Screenshot 2024-07-10 at 12 07 07 PM

According to my Gemfile.lock:

pagy (8.6.3)
    pagy_cursor (0.2.0)
      activerecord (>= 5)
      pagy

@jagthedrummer
Copy link
Contributor

Ah! The version thing jogged my memory and I remembered this issue: #1450

@jagthedrummer
Copy link
Contributor

(Also, I'm a little surprised that depfu hasn't updated pagy in the starter repo. Not sure what's up with that.)

@zackgilbert
Copy link
Author

Whoa. So my apps have an updated pagy version (8.6.3) but yours doesn't, which is why the styles are still working for you?

@jagthedrummer
Copy link
Contributor

@zackgilbert yep, that's the thing. The starter repo is currently on 6.5.0 😬 :

pagy (6.5.0)

There are a decent number of breaking changes listed for 7.0.0 and then 8.0.0 explicitly mentions changing the class name structure.

CleanShot 2024-07-10 at 14 16 11

@zackgilbert
Copy link
Author

Ah! So I'm not crazy! Yay! Well that explains it. Okay... and for what its worth, I believe avo requires pagy > 7, so not sure how that's resolving correctly.

Anyways... super good to know... thanks for tracking that down.

@jagthedrummer
Copy link
Contributor

I believe avo requires pagy > 7, so not sure how that's resolving correctly

Hey, that's fun. 🫠

@swombat
Copy link

swombat commented Aug 15, 2024

avo requires pagy > 7 for the latest version but the current version (which includes a deprecated call to Rails.application.secrets...) doesn't.

Rails.application.secrets will be removed in Rails 7.2... so, I guess this might be worth updating...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants