-
Notifications
You must be signed in to change notification settings - Fork 846
Update Pricing table design to current version #26253
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
Conversation
|
Caution: This PR has changes that must be merged to WordPress.com |
|
Are you an Automattician? You can now test your Pull Request on WordPress.com. On your sandbox, run |
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
Boost plugin:
Social plugin:
Starter Plugin plugin:
Protect plugin:
Videopress plugin:
|
danielpost
left a comment
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.
Really nice work! I've only added a couple minor thoughts.
Two other things:
- It seems like the non-functional tooltip icons are still present on the table items. I think these need to be replaced by working tooltips, and on mobile these tooltips need to be present on each item in a column.
- This was a bug that was already present before your PR, but adding a price without a label causes the button to line up wrong. What do you think about fixing that in this PR as well?
projects/js-packages/components/components/pricing-table/index.tsx
Outdated
Show resolved
Hide resolved
projects/js-packages/components/components/product-price/index.tsx
Outdated
Show resolved
Hide resolved
|
Thanks @danielpost! I have a few questions about these:
Sure, these can be changed as well! Should these be added by users, or should they have a default value? Should they always appear on desktop? I was just wondering if a straight-forward feature name don't need one, we might should not show anything there.
Now my solution accepts one label for each table item, which is shown on large screens and on mobile as well. I guess if you want different popovers on mobile/desktop, or to have one on mobile but not on desktop, you can do that with using the
I'll look into this for sure, thanks for mentioning! 👍 |
Added by users IMO. They provide extra information about a specific row in the table, so I don't know if there's a default that would make sense.
Here's how I think it's supposed to work: Each row in the table can have a tooltip. On desktop, these appear next to the "title" of each row, and on mobile they appear next to each related item in a column (so if you have two columns, the same tooltip would appear in two different places). Additionally, users can add the tooltip to an individual item (you already added this feature). I think on mobile these would override the tooltips for a row, but that's something we can double-check with Design. Does that make sense? |
- Fix bug with height with no leyend on price
- Add popover for feature on mobile
- These are overwritten if user gives specific info for an item
- Replaced props for Popover component
- made offPercentage to a promoLabel to be able to display other values
danielpost
left a comment
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.
Nice! Just a couple more thoughts. Did you look into the button positioning when the price doesn't have a label underneath it?
projects/js-packages/components/components/pricing-table/index.tsx
Outdated
Show resolved
Hide resolved
projects/js-packages/components/components/pricing-table/index.tsx
Outdated
Show resolved
Hide resolved
projects/js-packages/components/components/pricing-table/styles.module.scss
Outdated
Show resolved
Hide resolved
projects/js-packages/components/components/pricing-table/styles.module.scss
Outdated
Show resolved
Hide resolved
projects/js-packages/components/components/pricing-table/styles.module.scss
Outdated
Show resolved
Hide resolved
Yeah, the pseudo element here solves it! |
oskosk
left a comment
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.
LGTM! Merging. Please follow up with another PR if something looks off or any feedback was left unaddressed.
|
Great news! One last step: head over to your WordPress.com diff, D87888-code, and deploy it. Thank you! |
|
r252976-wpcom |


Changes proposed in this Pull Request:
tooltipInfoand optoionaltooltipTitleprops to the PricingTabelItem component.primaryprop to a PricingTableColumn.Other information:
Jetpack product discussion
1202844140176868-as-1202944779121698
Does this pull request change what data or activity we track or use?
No.
Testing instructions:
npm run storybook:devfrom thejs-packages/storybookfolder.