Repository navigation
0.13.0: Mobile menus, carousels, motion and class updates - #23
Merged
Merged
Conversation
Headers hid their links below the tablet breakpoint and offered no menu. Every header with links now uses nav-nested in the structure Bricks 2.4.2 creates (read from a test page): a "Nav items" list (brx-nav-nested-items) with the links, the header button and a close toggle (brx-toggle-div), then the open toggle. mobileMenu is tablet_portrait, toggles use the squeeze animation (hamburger to X). - The overlay uses the kit's background and heading colors instead of Bricks' fixed white, with gutters; the header button moves into the menu on phones; a compact 26px hamburger - Preview renders the nav, list items and toggles like Bricks (closed) - Validator knows nav-nested's ariaLabel and mobileMenu, which the published schema omits (verified against Bricks' rendered output) - Fix: comparing a staged class with the site's ignored nothing about CSS layout, so classes whose custom CSS Bricks reformats on save (line breaks, indentation) were reported as differing definitions Verified live on the test site: the toggle opens and closes the menu at 390 px, links stay in the bar at 1280 px, and the 0.12 accordion and pricing switch open as expected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01APhfigKq7DMdgedQ4Pr9VK
A site that installed an earlier BricksSnap release (or another design) kept its bs- class definitions: the staged ones were reported as differing and never written, so improvements never reached it. - New "update-classes" request: puts the site's bs- classes on given definitions with Bricks' update-global-class, carrying each class's item ownership and the lock ownership; only bs- classes are accepted - update-global-class merges settings recursively, so the patch sets dropped keys to null (nested objects too); verified live that null removes a key - The result is read back and compared (ignoring CSS layout); the previous definitions come back for undo; a refused write stops the run and keeps earlier updates undoable - Staging: after "Create missing global classes", outdated bs- classes can be updated (with a note that this changes them site-wide) and the update undone - Tests: patch builder, guarded update/verify/undo and a concurrent edit against the Bricks stand-in Verified live on the test site: outdated → update → undo → update, each step verified by read-back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01APhfigKq7DMdgedQ4Pr9VK
- Carousels: testimonials and portfolio as Bricks' nested slider
(Splide). Options go in as custom JSON because Bricks refuses
breakpoint keys on slider controls; Splide breakpoints give 3/2/1 or
2/1 slides. Navigation by swipe and dots (arrows covered content at
narrow widths); dot colors come from the kit
- Motion: a brand kit option ("Fade in"). Content sections (not headers,
heroes, footers or single-purpose pages) fade their intros, cards,
items and images up once on scroll via Bricks interactions
(enterView → startAnimation fadeInUp), slightly staggered; nothing
inside Bricks' tabs, accordion, slider, nav or forms. bs-motion keeps
everything visible and still with prefers-reduced-motion
- Kit option in the Studio, the WordPress contract and the MCP kit
schema; the preview shows carousels as a still of the first slides
- Class comparison also ignores spaces around ">" and ",", which Bricks
removes when it stores custom CSS
Verified live on the test site: sliders initialize with 1 slide at
390 px and 2/3 at 1280 px, content below the fold fades in on scroll,
and with reduced motion everything is visible at once; no JS errors.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01APhfigKq7DMdgedQ4Pr9VK
- Release notes and changelog for mobile menus, carousels, motion and outdated-class updates - WordPress guide: updating outdated BricksSnap classes and the update-global-class ability; CSS layout is not a difference - Studio guide: mobile menu, carousels, motion option, MCP kit.motion; remote library now 210 templates (92 layouts) - Roadmap: v0.13 - Thanks to the MIT-licensed bricks-skills and bricks-builder-skill references used to cross-check Bricks' element structures Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01APhfigKq7DMdgedQ4Pr9VK
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Release 0.13.0. See
docs/RELEASE-0.13.0.md.Mobile menu in every header
nav-nestedin the structure Bricks 2.4.2 creates, read from a test page: abrx-nav-nested-itemslist with the links, a close toggle (brx-toggle-div), then the open toggle. Settings aremobileMenu: tablet_portraitand thesqueezeanimation.ariaLabelandmobileMenu, which the published schema omits.Carousels
slider-nested(Splide), 92 layouts in total.Motion
kit.motionover MCP.enterView→startAnimation).bs-motionrespectsprefers-reduced-motion.Update outdated BricksSnap classes
update-classesrequest. Puts the site'sbs-classes on given definitions withupdate-global-class:bs-classes are accepted;null, nested ones too;bs-classes can be updated or reverted.>), which caused false "different definition" reports.Verified
🤖 Generated with Claude Code
https://claude.ai/code/session_01APhfigKq7DMdgedQ4Pr9VK
Generated by Claude Code