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

✨feat(shortcode): Add spoiler shortcode with optional fixed blur feature #113

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

welpo
Copy link
Owner

@welpo welpo commented Aug 24, 2023

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

  • New shortcode: Adds a spoiler shortcode that can be used in content files.
  • Optional fixed blur: Includes an optional 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.
  • Styling: Includes corresponding SCSS for proper styling.
  • Documentation: The shortcode posts have been updated to document this feature and group up all text shortcodes.
  • Accessibility: Ensures proper roles and aria attributes for accessibility.

Example

Default behaviour blurs the actual contents:
default

fixed_blur = true shows a blurred "SPOILER" before revealing the contents:
fixed_blur

Additionally, reorganises the shortcodes post to group text shortcodes.
@welpo welpo merged commit 151063d into main Aug 24, 2023
@welpo welpo deleted the feat/spoiler-shortcode branch August 24, 2023 12:27
@welpo welpo added the enhancement New feature or request label Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant