-
Notifications
You must be signed in to change notification settings - Fork 127
Add: Services - Two-column boxed pricing table #165
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Thanks for the excellent PR @juanfra. I have tested it, The spacing, border, and border-radius, are perfect 👌 |
<h3 class="wp-block-heading" id="free">Free</h3> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:paragraph {"style":{"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}},"textColor":"primary","fontSize":"large"} --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This text color needs to be removed to make it consistent with the second pricing option and to make it work with the section styles.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it does not look well. We may want to update the "secondary" in some variations, or not use it in this pattern. I'll defer this to @beafialho
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! We can use the Primary color on the 0€
Twenty Twenty-Four has an example of how to add the custom bullets for the unordered list as a block style: |
Thank you @juanfra! The pricing boxes are not looking great on mobile: Here's what I suggest instead, which looks good across screen sizes. I realize the approach of adding two extra columns with spacers inside may seem unnecessary, but the spacers are there to make it look perfect on mobile as well. pricing.mp4
|
Thanks @beafialho - The empty columns are a good trick for making it look good on mobile. I'll keep this in mind for future patterns as well. After applying the code you shared the only thing that needs adjustment, in my view, is that the pattern is taking full width, and on big screens the content is expanding and taking a width that's bigger than the site-wide. I wanted to double-check with you that this wasn't intentional so that I fix it before pushing the changes of the columns. Screen.Recording.2024-09-02.at.14.24.33.mov |
Oh thanks, it's not intentional. Ideally the boxes inside that outer group are wide width. |
@beafialho can you please give this one another look when you have time? Thanks ✨ |
Yes, sure. I'm still seeing the content a bit too tight, is it looking like this on your end as well? See recording: pricing.mp4I wonder if we could lose the left/right padding? It seems to look the same on desktop, but it looks much better on mobile. Please ignore the bg color, it was just to have a view of the bg spacing. |
I removed the horizontal padding and changed the width of the fake columns to 9%, as we discussed. |
Description
Fixes #78
Screenshots
Screen.Recording.2024-08-30.at.17.34.38.mov
Testing Instructions