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

A spoiler element #9926

Open
Seirdy opened this issue Nov 13, 2023 · 1 comment
Open

A spoiler element #9926

Seirdy opened this issue Nov 13, 2023 · 1 comment
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest

Comments

@Seirdy
Copy link

Seirdy commented Nov 13, 2023

What problem are you trying to solve?

A standard way to make content inaccessible and opaque to the user without consent, with optional preview text. More details on this proposal are in this article.

What solutions exist today?

  • Custom site-specific solutions (phpBB, TVTropes, Matrix and Discord spoilers, Reddit spoilers, sensitive media on the Fediverse and most search engines' image searchs).
  • The details element, which is not equivalent on semantic, UA behavior, and presentation grounds.

How would you solve it?

A new HTML element (and perhaps a corresponding ARIA role?) called spoiler. The specification for summary could be modified to support being an optional child of spoiler.

Anything else?

An alternative solution was proposed in #8770, but I disagree that styling alone is enough for reasons outlined in the linked article: user-agents and assistive technologies will need to behave differently when faced with spoiler semantics.

@Seirdy Seirdy added addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest labels Nov 13, 2023
@jimmyfrasche
Copy link

See also openui/open-ui#772

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest
Development

No branches or pull requests

2 participants