Skip to content

feat: support spoiler tag, resolves #301 - #309

Open
FrenchGithubUser wants to merge 2 commits into
JiLiZART:masterfrom
FrenchGithubUser:spoiler-tag
Open

feat: support spoiler tag, resolves #301#309
FrenchGithubUser wants to merge 2 commits into
JiLiZART:masterfrom
FrenchGithubUser:spoiler-tag

Conversation

@FrenchGithubUser

Copy link
Copy Markdown
Contributor

I couldn't find a better way to support the hover mechanism

@changeset-bot

changeset-bot Bot commented Feb 18, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: cb365a2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@JiLiZART

JiLiZART commented Mar 2, 2026

Copy link
Copy Markdown
Owner

Please use details html5 tag https://developer.mozilla.org/ru/docs/Web/HTML/Reference/Elements/details

And add changeset npx changeset add

@FrenchGithubUser

Copy link
Copy Markdown
Contributor Author

Hey, I'll add a changeset in a bit.

Regarding the details tag, it doesn't seem to allow having a spoiler on a few words of a line, it's either the full line or nothing and that's quite limiting. This tag also produces an element that takes quite a bit more space on the page :/
I know the class approach isn't as clean as we would like, but the behavior is then much better imo :)

If you don't want to have such a tag in BBob directly, I'll just use a custom tag on my end I guess :)

@JiLiZART

JiLiZART commented Jul 4, 2026

Copy link
Copy Markdown
Owner

I inspected how spolier tag is used, and <details> is a only way I can accept.
You can check it here
https://xenforo.com/community/help/bb-codes/
and here
https://www.phpbb.com/customise/db/extension/simple_spoiler_bbcode/

It's a interactive text (default is "Spoiler") that expands hidden text. As details tag does.

@FrenchGithubUser

Copy link
Copy Markdown
Contributor Author

I guess I'll have to write a custom tag for my own usage, but indeed what you linked seems to be the most widely used one

@JiLiZART
JiLiZART force-pushed the master branch 5 times, most recently from 4c047cf to 0c49f3b Compare July 26, 2026 00:49
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

Successfully merging this pull request may close these issues.

2 participants