Skip to content

feat(lightbox): fade the dialog in and out#1992

Merged
markdumay merged 1 commit into
mainfrom
feat/lightbox-fade
Jul 10, 2026
Merged

feat(lightbox): fade the dialog in and out#1992
markdumay merged 1 commit into
mainfrom
feat/lightbox-fade

Conversation

@markdumay

Copy link
Copy Markdown
Collaborator

What

The reusable lightbox <dialog> now fades in and out (opacity + subtle scale, plus the backdrop), replacing the fade-in-only keyframe.

How

Transition-based, using @starting-style for the pre-open value and transition-behavior: allow-discrete on display/overlay so the dialog animates out before it leaves the top layer. Still gated behind prefers-reduced-motion: no-preference; browsers without @starting-style/allow-discrete simply skip the animation (instant, no worse than today).

Why

Opening/closing the lightbox (images and cloned mermaid diagrams) was abrupt on close. This gives a subtle, consistent fade both directions.

Verification

dart-sass compiles the new @starting-style/allow-discrete syntax; the full exampleSite build is clean.

🤖 Generated with Claude Code

Replace the fade-in-only keyframe with transition-based fades on both
open and close, using @starting-style for the entry value and
allow-discrete on display/overlay so the dialog animates out before it
leaves the top layer. The backdrop fades too. Still gated behind
prefers-reduced-motion; unsupported browsers simply skip the animation.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@netlify

netlify Bot commented Jul 10, 2026

Copy link
Copy Markdown

Deploy Preview for gethinode-demo ready!

Name Link
🔨 Latest commit f569184
🔍 Latest deploy log https://app.netlify.com/projects/gethinode-demo/deploys/6a506933cee46e00087daee6
😎 Deploy Preview https://deploy-preview-1992--gethinode-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@markdumay markdumay merged commit 81335ce into main Jul 10, 2026
16 checks passed
@markdumay

Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 2.19.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@markdumay markdumay deleted the feat/lightbox-fade branch July 10, 2026 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant