-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Remove alignment from block pattern woocommerce-blocks/related-products
#59727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthroughThe update modifies the WooCommerce related products pattern by removing the "align":"wide" attribute from its block configuration and the associated "alignwide" CSS class from the wrapping div. No other aspects of the block's configuration or functionality are changed. Changes
Sequence Diagram(s)No sequence diagram generated as the changes are limited to markup and styling adjustments. 📜 Recent review detailsConfiguration used: .coderabbit.yml 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.{php,js,ts,jsx,tsx}Instructions used from: Sources: 🧠 Learnings (2)📓 Common learnings
plugins/woocommerce/patterns/related-products.php (10)
🔇 Additional comments (2)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
In my opinion, reusable patterns should be as bare as possible, without any alignment, which can break upper design (here containerized product collection, not fullwidth). If you want to use the
wide
alignment, I recommend wrapping with a group block on upper template.I also found this setting in some more patterns, if such changes are welcome, I'll create more PRs :-)