withastro/astro

Print mode covers content with "On this page" section

virzak opened this issue · 1 comments

Astro Info

Astro                    v4.16.16
Node                     v23.3.0
System                   Windows (x64)
Package Manager          unknown
Output                   static
Adapter                  none
Integrations             @astrojs/starlight

If this issue only occurs in one browser, which browser is a problem?

Chrome, Safari

Describe the Bug

Print preview displays "On this page > Overview" section on every page, covering actual content.

Happens in both v4 and v5.

image

The actual content should be:

image

Same problem with v5.
https://5-0-0-beta.docs.astro.build/en/guides/endpoints/

image

What's the expected result?

"On this page" should be hidden in print mode by default

Link to Minimal Reproducible Example

https://docs.astro.build/en/guides/content-collections/

Participation

  • I am willing to submit a pull request for this issue.
bluwy commented

We're using Starlight for the documentation, so the fix should be in https://github.com/withastro/starlight. However, print styles support is still a WIP at withastro/starlight#157 and should be unblocked when Astro v5 releases soon. I'll close the issue for now but I'd suggest to follow progress on print mode support in that PR.