"docked" in <body> always present?

It looks like something has changed recently in the way how Discourse handles the “docked” class in the <body> tag.

Before, if I remember correctly, “docked” appeared dynamically in <body> once the scrolling started (example), but now, it is always present. Now, unfortunately, this class loses its purpose: you could simply drop it completely and remove lines contain not(.docked). But it would be helpful to keep the old behaviour for us who still use it to display, for example, a different header content at the very top compared to the reduced header when user starts scrolling.

Is there another way how to handle the described case now? Please, advise.

This could be helpful for you:

This .docked you mentioned is different that is for the .topic-progress-wrapper.
Which is appear when this :arrow_double_down:
Screenshot 2022-02-02 at 8.01.50

docked on the bottom of the topic.

1 Like

Thanks. I’ll take a look into these two suggested topics.

1 Like