Rails compatibility: Don't apply aria-busy styles on <html> element #215
mattbrictson
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
Hey @mattbrictson I just stumbled over the exact same issue, that @picocss together with @rails / @hotwired Turbo makes my page jump on every navigational click. Thx for explaining what is causing this issue. Do you have any CSS styles to reset the |
Beta Was this translation helpful? Give feedback.
2 replies
-
This was fixed in #349! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pico is great! I primary use it with Rails.
By default, Rails will apply
aria-busy=true
on thehtml
element when browser navigation actions are in progress. This results in a visual glitch with Pico. Pico applies a loading spinner on any element witharia-busy=true
, including thehtml
element. So anytime you click a link or a button in a Rails app, Pico puts a spinner icon on the root of the page, causing all content on the page to shift down.To fix this, it would be great if Pico could add a
:not(html)
to itsaria-busy=true
selector.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions