Closed subframe7536 closed 6 months ago
Thanks for your report.
Indeed, <details>
and <summary>
elements are not styled at all at the moment but this should be fixed by #1735.
Edit: Or maybe, as I did not find any usage of <details>
and <summary>
in the linked reproduction, you are talking about the sidebar? The screenshot may hint that but I'm not entirely sure.
Would you be able to provide more context regarding the issue?
Sure, I add a comment in your PR
Just tried using Chrome on a Windows machine and I cannot repro the issue using your repro link, the Starlight documentation or the preview page from the linked PR.
In the screenshot you provided, is this from a local reproduction? Is this the Starlight online documentation? Is this a sidebar issue only?
Regarding the comment you left, do you have any source or reference for such change?
repro:
fix:
Could you have any extension (maybe something related to styles, as I see you may be getting a custom font) that could add such a style to the element. Would you be able to test in a private window maybe with no extension enabled?
For example, I personally do not get that inline style on the summary elements in the Starlight documentation.
You are right. There is a global CSS injected by one of userscript in violent monkey, which is reference from tailwind css reset. Disable that and everything works
What version of
starlight
are you using?latest
What version of
astro
are you using?latest
What package manager are you using?
pnpm
What operating system are you using?
Windows
What browser are you using?
Chrome
Describe the Bug
Using
summary::marker
withdisplay: none
to hide is ineffective. Should use withlist-style: none
insummary
Link to Minimal Reproducible Example
https://stackblitz.com/github/withastro/starlight/tree/main/examples/basics
Participation