Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

---

## [Unreleased] — Add the Referrals page section patterns and fix the mobile menu accordion links (LSA-212)

### Added

- `patterns/sections/intro-graphic-lede.php` (Section - Intro Graphic Lede): an H2, a decorative three-person network graphic that follows light and dark mode, and the lede paragraph.
- `patterns/sections/list-card-pair.php` (Section - List Card Pair): two bordered cards with an H3, a lead paragraph and a core List each, an ordered list with round numbered badges and a bulleted list with brand-coloured bullets.
- `patterns/sections/split-intro-form-panel.php` (Section - Split Intro Form Panel): the intro on the left and a bordered card holding only the Gravity Forms block on the right, laid out like the Contact page. The form ID is looked up by the form title, so it works on every site.
- `patterns/sections/project-query-image-cards.php` (Section - Project Query Image Cards): a 2-column Query Loop of Work posts from the WordPress group, each a Card - Case Study shell with the featured image and the title, the whole card one link.
- `src/scss/structural/referral-sections.scss`, compiled to `assets/css/referral-sections.css`: the network graphic, the numbered step badges, the brand bullets, the referral form styles scoped to the card, and the stretched case-study link.

### Changed

- `parts/mobile-menu.html`: the five accordion titles are plain text instead of links inside a `<summary>` (axe nested-interactive). The overview link already inside each panel ("See all work" and the others) is the way to the section page, so tapping a title now opens its panel. The unused `summary > a` rules are removed from `styles/blocks/details/mobile-menu-accordion.json`.
- `tests/specs/mobile-menu.spec.ts`: leaves Pricing out of the accordion list while the Pricing menu is hidden, and replaces the known-issue test with a real check that no summary contains a link, with the axe scan running every rule.

([#175](https://github.com/lightspeedwp/ls-theme/pull/175))

---

## [Unreleased] — Add the scrolling client logo marquee and the referral hero graphic (LSA-212)

### Added
Expand Down
2 changes: 1 addition & 1 deletion assets/css/referral-sections.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions inc/animations.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function ls_theme_get_bundle_render_markers() {
'about-team' => array( 'classes' => array( 'ls-index-hero', 'ls-profile-group', 'ls-profile-grid', 'ls-text-stack', 'ls-team-cta' ) ),
'testimonial-cards' => array( 'classes' => array( 'ls-quote-mark', 'ls-testimonial-featured', 'ls-card-masonry' ) ),
'logo-marquee' => array( 'classes' => array( 'ls-logo-marquee' ) ),
'referral-sections' => array( 'classes' => array( 'ls-referral-mark' ) ),
'referral-sections' => array( 'classes' => array( 'ls-referral-mark', 'ls-referral-network', 'ls-referral-steps', 'ls-referral-reasons', 'ls-referral-form-card', 'ls-case-study-card' ) ),
);
}

Expand Down Expand Up @@ -804,8 +804,8 @@ function ls_theme_get_effect_styles( $context = 'front' ) {
'handle' => 'ls-theme-referral-sections',
'path' => 'assets/css/referral-sections.css',
'contexts' => array( 'front', 'editor' ),
// The Referrals page: the referral hero graphic (more sections arrive with the page patterns).
// The render-marker fallback loads it wherever the graphic renders.
// The Referrals page: the hero and intro graphics, the list cards, the referral form styles and the
// case-study cards. The render-marker fallback loads it wherever those patterns render.
'condition' => static function () {
return is_page( 'referrals' );
},
Expand Down
10 changes: 5 additions & 5 deletions parts/mobile-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- /wp:group -->

<!-- wp:details {"className":"mobile-menu-accordion is-style-mobile-menu-accordion","layout":{"type":"default"}} -->
<details class="wp-block-details mobile-menu-accordion is-style-mobile-menu-accordion"><summary><a href="/work/">Work</a></summary><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","orientation":"vertical","flexWrap":"nowrap"}} -->
<details class="wp-block-details mobile-menu-accordion is-style-mobile-menu-accordion"><summary>Work</summary><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","orientation":"vertical","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:group {"className":"ls-simple-submenu-links","style":{"spacing":{"blockGap":"0"}},"layout":{"type":"grid","columnCount":1}} -->
<div class="wp-block-group ls-simple-submenu-links is-layout-grid wp-block-group-is-layout-grid"><!-- wp:paragraph {"className":"is-style-mega-menu-item-service","fontSize":"200"} -->
<p class="is-style-mega-menu-item-service has-200-font-size"><a href="/work/drive-botswana-case-study/">Drive Botswana</a></p>
Expand Down Expand Up @@ -38,7 +38,7 @@
<!-- /wp:details -->

<!-- wp:details {"className":"mobile-menu-accordion is-style-mobile-menu-accordion","layout":{"type":"default"}} -->
<details class="wp-block-details mobile-menu-accordion is-style-mobile-menu-accordion"><summary><a href="/solutions/">Solutions</a></summary><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","orientation":"vertical","flexWrap":"nowrap"}} -->
<details class="wp-block-details mobile-menu-accordion is-style-mobile-menu-accordion"><summary>Solutions</summary><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","orientation":"vertical","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:group {"className":"ls-simple-submenu-links","style":{"spacing":{"blockGap":"0"}},"layout":{"type":"grid","columnCount":1}} -->
<div class="wp-block-group ls-simple-submenu-links is-layout-grid wp-block-group-is-layout-grid"><!-- wp:paragraph {"className":"is-style-mega-menu-item-service","fontSize":"200"} -->
<p class="is-style-mega-menu-item-service has-200-font-size"><a href="/solutions/wordpress/">WordPress</a></p>
Expand Down Expand Up @@ -76,7 +76,7 @@
<!-- /wp:details -->

<!-- wp:details {"className":"mobile-menu-accordion is-style-mobile-menu-accordion","layout":{"type":"default"}} -->
<details class="wp-block-details mobile-menu-accordion is-style-mobile-menu-accordion"><summary><a href="/services/">Services</a></summary><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","orientation":"vertical","flexWrap":"nowrap","justifyContent":"stretch"}} -->
<details class="wp-block-details mobile-menu-accordion is-style-mobile-menu-accordion"><summary>Services</summary><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","orientation":"vertical","flexWrap":"nowrap","justifyContent":"stretch"}} -->
<div class="wp-block-group"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20","padding":{"bottom":"var:preset|spacing|30"}},"border":{"bottom":{"color":"color-mix(in srgb, var(--wp--custom--color--border--card) 60%, transparent)","style":"solid","width":"1px"}}},"layout":{"type":"flex","orientation":"vertical","flexWrap":"nowrap","justifyContent":"stretch"}} -->
<div class="wp-block-group" style="border-bottom-color:color-mix(in srgb, var(--wp--custom--color--border--card) 60%, transparent);border-bottom-style:solid;border-bottom-width:1px;padding-bottom:var(--wp--preset--spacing--30)"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|10"}},"layout":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"center"}} -->
<div class="wp-block-group"><!-- wp:icon {"icon":"lightspeed/dot","className":"has-text-color","style":{"color":{"text":"var(--wp--custom--color--phase--discover)"},"dimensions":{"width":"8px"}}} /-->
Expand Down Expand Up @@ -212,7 +212,7 @@
<!-- /wp:details -->

<!-- wp:details {"className":"mobile-menu-accordion is-style-mobile-menu-accordion","layout":{"type":"default"}} -->
<details class="wp-block-details mobile-menu-accordion is-style-mobile-menu-accordion"><summary><a href="/blog/">Insights</a></summary><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","orientation":"vertical","flexWrap":"nowrap"}} -->
<details class="wp-block-details mobile-menu-accordion is-style-mobile-menu-accordion"><summary>Insights</summary><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","orientation":"vertical","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:group {"className":"ls-simple-submenu-links","style":{"spacing":{"blockGap":"0"}},"layout":{"type":"grid","columnCount":1}} -->
<div class="wp-block-group ls-simple-submenu-links is-layout-grid wp-block-group-is-layout-grid"><!-- wp:paragraph {"className":"is-style-mega-menu-item-service","fontSize":"200"} -->
<p class="is-style-mega-menu-item-service has-200-font-size"><a href="/our-lsx-theme-is-gutenberg-compatible-and-thats-just-the-beginning/">Built for the Block Editor</a></p>
Expand Down Expand Up @@ -246,7 +246,7 @@
<!-- /wp:details -->

<!-- wp:details {"className":"mobile-menu-accordion is-style-mobile-menu-accordion","layout":{"type":"default"}} -->
<details class="wp-block-details mobile-menu-accordion is-style-mobile-menu-accordion"><summary><a href="/about/">About</a></summary><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","orientation":"vertical","flexWrap":"nowrap"}} -->
<details class="wp-block-details mobile-menu-accordion is-style-mobile-menu-accordion"><summary>About</summary><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","orientation":"vertical","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:group {"className":"ls-simple-submenu-links","style":{"spacing":{"blockGap":"0"}},"layout":{"type":"grid","columnCount":1}} -->
<div class="wp-block-group ls-simple-submenu-links is-layout-grid wp-block-group-is-layout-grid"><!-- wp:paragraph {"className":"is-style-mega-menu-item-service","fontSize":"200"} -->
<p class="is-style-mega-menu-item-service has-200-font-size"><a href="/about/history/">Our Story</a></p>
Expand Down
Loading
Loading