Redesign/carousel Rail#23
Merged
Merged
Conversation
- Add 'engine' attribute to carousel block (slick/rail), default slick - Update save.jsx to render rail markup when engine=rail - Add CSS for rail mode: grid layout, scroll-snap, responsive - Update homepage pattern to use engine=rail for work carousel Step 6 from AVENDHA-REDESIGN.md
Version bump to reflect the new engine attribute and rail mode rendering.
✅ WordPress Plugin Check Report
📊 ReportAll checks passed! No errors or warnings found. 🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check |
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.
Version:
2.21.0Rail-mode carousel adds a CSS scroll-snap engine option as an alternative to the existing Slick-based carousel, giving editors a lighter-weight, dependency-free carousel layout while preserving Slick for feature-rich use cases. The carousel block is bumped to version 1.1.0, and asset enqueuing is now gated by the selected engine so Slick's JS/CSS are only loaded when the Slick engine is actually in use. Follow-up work fixed several bugs specific to rail mode's scroll-snap behavior. The homepage pattern is updated to reflect the new carousel configuration, and the changelog/readme are updated for the 2.21.0 release.
Carousel Engine Architecture:
aludra.phpso Slick assets load only when the carousel's engine attribute is set to Slick, reducing frontend payload for rail-mode carousels.block.json,save.jsx,style.scss, andview.jsin the carousel block source to support the new engine attribute and rail-specific markup/behavior.Bug Fixes:
Release and Documentation:
CHANGELOG.mdandreadme.txtfor the 2.21.0 plugin release, and updatedpatterns/page-homepage.phpto align with the new carousel engine configuration.Files Changed:
CHANGELOG.md(Modified)aludra.php(Modified)blocks/carousel/build/block.json(Modified)blocks/carousel/build/index.asset.php(Modified)blocks/carousel/build/index.js(Modified)blocks/carousel/build/style-index-rtl.css(Modified)blocks/carousel/build/style-index.css(Modified)blocks/carousel/build/view.asset.php(Modified)blocks/carousel/build/view.js(Modified)blocks/carousel/src/block.json(Modified)blocks/carousel/src/save.jsx(Modified)blocks/carousel/src/style.scss(Modified)blocks/carousel/src/view.js(Modified)patterns/page-homepage.php(Modified)readme.txt(Modified)