Skip to content

feat: add image lightbox for documentation images - #23

Merged
loadinglucian merged 1 commit into
mainfrom
feat/add-docs-image-lightbox
Feb 13, 2026
Merged

feat: add image lightbox for documentation images#23
loadinglucian merged 1 commit into
mainfrom
feat/add-docs-image-lightbox

Conversation

@loadinglucian

Copy link
Copy Markdown
Owner

Implements a click-to-expand lightbox overlay for documentation images, enhancing the user experience when viewing visual content.

Key Features

  • Click or keyboard (Enter/Space) to expand images in full-screen overlay
  • ESC key or click-outside to close
  • Proper focus management and ARIA attributes for accessibility
  • Responsive sizing with smooth hover transitions
  • Dark theme overlay with backdrop blur effect

Implementation

  • Added .docs-prose class to article wrapper for scoped selectors
  • CSS provides visual styling (overlay, transitions, focus states)
  • JavaScript handles interactions and keyboard navigation

Implements a click-to-expand lightbox overlay for all images within documentation prose content. Enhances user experience by allowing full-screen image viewing with keyboard navigation and proper accessibility support.

Key features:
- Click or Enter/Space to expand images in overlay
- ESC key or click-outside to close
- Focus management and keyboard accessibility
- Responsive sizing with smooth transitions
- Dark theme overlay with backdrop blur
@loadinglucian
loadinglucian merged commit 3f17727 into main Feb 13, 2026
3 of 6 checks passed
@loadinglucian
loadinglucian deleted the feat/add-docs-image-lightbox branch February 13, 2026 12:31
@coderabbitai

coderabbitai Bot commented Feb 13, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

This PR introduces a documentation image lightbox feature with comprehensive CSS styling, client-side JavaScript functionality for lightbox interactions and keyboard navigation, and updates to the docs content component styling class. The CSS definitions appear duplicated in the diff.

Changes

Cohort / File(s) Summary
Lightbox Feature
resources/css/app.css, resources/js/app.js
Adds image lightbox UI styling and client-side logic for overlay interactions, focus management, keyboard navigation (Escape to close, Enter/Space to open), and livewire integration. CSS block appears duplicated in diff.
Documentation Styling
resources/views/components/docs/content.blade.php
Adds "docs-prose" class to article element for lightbox styling integration.

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

1 participant