Skip to content

Enable announcement banner to be sticky #546

@alexisthual

Description

@alexisthual

What's happening?

Currently, I use the announcement banner to warn users that they are looking at an outdated version of the generated docs.
However, the banner is not sticky / fixed, so it disappears when users scroll down the page. This can be problematic when users access the docs through a hyperlink referencing a paragraph, as they probably won't see the banner.

I tried using custom CSS to simply make the banner sticky, but it seems it seems more complex (see discussion #545).
In particular, the rest of the page will scroll under the banner, eventually hiding the logo, which I think is not the expected behaviour.
Screenshot from 2022-10-08 18-24-04

Reproducer

Simply use announcement option and scroll down.

Expectation

In my opinion, banners should be sticky by default in order to prevent this, but I guess having an option to make them sticky or not could be nice! 🙂

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions