✨feat(shortcode): Add spoiler shortcode with optional fixed blur feature #113
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces a new spoiler shortcode feature. It provides a way to hide or blur content until user interaction, with an optional
fixed_blur
flag.Changes
fixed_blur
flag to control the spoiler's appearance. If set to true, the shortcode will display a blurred "SPOILER" text. If false (or not set), it will blur the actual content.aria
attributes for accessibility.Example
Default behaviour blurs the actual contents:
fixed_blur = true
shows a blurred "SPOILER" before revealing the contents: