Conversation
|
Hi @jmuzina , thanks so much for organizing and building out this complex pattern!
also, I'll add @eliman11 for the UX review! |
|
Thank you @jmuzina and @kim-isaac this looks great! Sorry this is super minor and annoying, but could we change all the headings to use sentence case so that we're consistent with the other patterns (although I also just noticed "Quote Wrapper" is in title case) - so Basic section, Basic section / Mixed content, Basic section / Linked title, etc Also could we have an h3 HTML tag for the label instead of an h4 to avoid skipping levles in the heading hierarchy? Everything else looks good to me! |
|
Thanks for your reviews @eliman11 and @kim-isaac - I've adjusted per your feedback. Have another look and let me know what you think! |
|
Thanks @jmuzina ! I have two comments below:
Besides that all looks great! Thanks again. |
|
Hi @jmuzina
Yes, that would be great! |
|
Thanks Julie! Looks good :) Also very minor but can we also have the "Basic Section" heading on the page itself in sentence case? Will +1 for UX though, thanks both! |
|
Hi @jmuzina , I've checked that the bottom margin on the label has been reduced - thank you! |
Done, thanks!
Good point, I removed those bits of text that were outside of the patterns and instead am relying on the text inside the examples themselves to demonstrate which padding is being used.
I think it's important we keep the example embed in some form - it helps developers to quickly get started using the pattern with a given configuration (in this case different padding settings) by copy-pasting. I've reworded the documentation here to make these things clear :
With these changes and the removal of the misleading out-of-pattern titles in the example, do you think the page is okay now? |
|
Hi @jmuzina , thanks, all looks good to me! |
There was a problem hiding this comment.
Pull Request Overview
This PR implements a new Basic Section pattern that provides a flexible content structure with title, subtitle, and various content blocks. The pattern supports multiple content types including text, images, videos, lists, code blocks, logos, and call-to-action elements with responsive layout options.
- Introduces a comprehensive basic section pattern with configurable padding and layout options
- Enhances the linked logo section pattern to support attribute forwarding and optional elements
- Adds extensive documentation and examples demonstrating various configuration options
Reviewed Changes
Copilot reviewed 29 out of 29 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
templates/_macros/vf_basic-section.jinja |
Core macro implementing the basic section pattern with support for multiple content block types |
templates/_macros/vf_linked-logo-section.jinja |
Updated to support attribute forwarding, optional title, and configurable top rule |
templates/_macros/shared/vf_dedent.jinja |
New utility macro for removing leading whitespace from multi-line text blocks |
templates/docs/patterns/basic-section/index.md |
Comprehensive documentation for the new basic section pattern |
templates/docs/building-vanilla.md |
Added documentation for attribute forwarding feature |
templates/docs/examples/patterns/basic-section/* |
Multiple example files demonstrating various basic section configurations |
tests/snapshots.test.js |
Added basic section to responsive snapshot testing |
releases.yml |
Added changelog entries for version 4.28.0 |
Comments suppressed due to low confidence (1)
templates/_macros/shared/vf_dedent.jinja:31
- The condition
not loop.first and not loop.lastwill prevent line breaks from being added between the first-second and second-last-last lines. This should benot loop.lastto add line breaks between all lines except after the last one.
{{- line[ns.min_indent:] -}}{%- if not loop.last and not loop.first %}<br/>{% endif -%}
Co-authored-by: Muhammad Ali <porschegtrs20@gmail.com>
|
@muhammad-ali-pk I've updated this PR per this comment to make the approach to the top rule and padding more consistent with your work on the pricing block - can you have a final look please? |
This sounds good, thanks so much! |






Done
Implements Basic section pattern.
TODO
image_attrscan be used instead ofimage_html.Fixes WD-22546
Fixes WD-23191
QA
Check if PR is ready for release
If this PR contains Vanilla SCSS or macro code changes, it should contain the following changes to make sure it's ready for the release:
Feature 🎁,Breaking Change 💣,Bug 🐛,Documentation 📝,Maintenance 🔨.package.jsonshould be updated relative to the most recent release, following semver conventionScreenshots