Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the "More details about this document" to start collapsed #1920

Open
jyasskin opened this issue Feb 7, 2025 · 1 comment
Open

Allow the "More details about this document" to start collapsed #1920

jyasskin opened this issue Feb 7, 2025 · 1 comment

Comments

@jyasskin
Copy link
Member

jyasskin commented Feb 7, 2025

If you put the "More details about this document" inside a <details> instead of a <details open>, pubrules fails with

The <details> element in the header should have attribute "open".

Even though https://www.w3.org/pubrules/doc/rules?profile=NOTE#docIDFormat doesn't mention this requirement.

Similar to #1919, I'd like https://w3ctag.github.io/explainers/ to start with its 'More details' section collapsed, so that readers can focus on the document's actual content rather than its metadata.

@deniak
Copy link
Member

deniak commented Feb 7, 2025

I think this is reasonable. We already use local storage to save the state of the widget.
@plehegar WDYT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants