Conversation
This commit adds support for the :zoom: option on figure directives, allowing documentation authors to specify different zoom modes for images. Supported zoom values: - lightbox (default) - Dialog overlay - gallery - PhotoSwipe-style with wheel zoom - inline - In-place zoom - lens - Magnifier lens - css-only - No JS fallback - none or false - Disable zoom Example usage: .. figure:: /Images/screenshot.png :zoom: lightbox Caption text. Changes: - Added custom FigureDirective in T3Docs\Typo3DocsTheme\Directives - Registered FigureDirective in typo3-docs-theme.php config - Updated figure.html.twig template to output data-zoom attribute - FigureNode now receives and stores the zoom option The implementation extends phpDocumentor's figure directive by adding the zoom option to the FigureNode, which is then rendered as a data-zoom attribute in the HTML output.
- Added _component_image_zoom.scss with styles for all 5 zoom modes - Added image-zoom.js with zoom functionality (lightbox, gallery, inline, lens, css-only) - Imported SCSS in theme.scss - JS auto-included via Gruntfile (assets/js/*.js -> theme.min.js) Accessibility features: - Full keyboard navigation (Tab, Enter, ESC, arrows) - ARIA roles and screen reader support - Focus trap and focus return for modals - Reduced motion support
7 tasks
Contributor
|
added to #1139 - may be closed |
Member
Author
|
Thank you |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.