Skip to content

Redesign/carousel Rail#23

Merged
jasperf merged 2 commits into
mainfrom
redesign/carousel-rail
Jul 21, 2026
Merged

Redesign/carousel Rail#23
jasperf merged 2 commits into
mainfrom
redesign/carousel-rail

Conversation

@jasperf

@jasperf jasperf commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Version: 2.21.0

Rail-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:

  • Introduced a CSS scroll-snap "rail" engine as a selectable alternative to the Slick engine, avoiding the overhead of the Slick library for simpler carousel use cases.
  • Gated Slick script/style enqueuing in aludra.php so Slick assets load only when the carousel's engine attribute is set to Slick, reducing frontend payload for rail-mode carousels.
  • Updated block.json, save.jsx, style.scss, and view.js in the carousel block source to support the new engine attribute and rail-specific markup/behavior.

Bug Fixes:

  • Resolved rail-mode-specific bugs affecting scroll-snap carousel behavior, fixed alongside the Slick asset gating change to ensure both engines function correctly on the frontend.

Release and Documentation:

  • Bumped the carousel block version to 1.1.0 to reflect the new rail-mode feature.
  • Updated CHANGELOG.md and readme.txt for the 2.21.0 plugin release, and updated patterns/page-homepage.php to align with the new carousel engine configuration.

Files Changed:

jasperf added 2 commits July 21, 2026 10:46
- 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.
@github-actions

Copy link
Copy Markdown

✅ WordPress Plugin Check Report

✅ Status: Passed

📊 Report

All checks passed! No errors or warnings found.


🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

@jasperf
jasperf merged commit bd88e8f into main Jul 21, 2026
2 checks passed
@jasperf
jasperf deleted the redesign/carousel-rail branch July 21, 2026 04:05
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