Skip to content
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

Get started page UX improvements: add FAQs card #1470

Merged

Conversation

ianlin
Copy link
Member

@ianlin ianlin commented May 3, 2022

Changes proposed in this Pull Request:

Part of #1392, this PR adds the FAQs card to the new get started page.

Design: eQ9O4m2flzrcAiDMXkOW0m-fi-7350%3A121282

The latest copies and the links of the FAQ can be found in the Marketing copy document in this post: pcTzPl-i7-p2#design-requirements. Need to request access in order to see the content.

Screenshots:

Desktop

Screenshot 2022-05-03 at 14 45 20

gla-get-started-faq-desktop-expanded

Mobile

Screenshot 2022-05-03 at 14 46 11

gla-get-started-faq-mobile-expanded

Tablet

Screenshot 2022-05-03 at 14 46 28

gla-get-started-faq-tablet-expanded

Detailed test instructions:

  1. Go to GLA's get started page: https://domain.test/wp-admin/admin.php?page=wc-admin&path=%2Fgoogle%2Fstart
  2. Check the sixth card of the get started page, the UI should align with the design.
  3. Use the mobile view from the dev tool, the text of the longer question shouldn't be overlapped with the caret down icon like the below image:
    • Screenshot 2022-05-03 at 14 33 14

Changelog entry

Update - Add the FAQs card for UX improvements on get started page.

@ianlin ianlin added the type: enhancement The issue is a request for an enhancement. label May 3, 2022
@ianlin ianlin requested a review from a team May 3, 2022 06:48
@ianlin ianlin self-assigned this May 3, 2022
@@ -30,11 +31,12 @@ const getPanelToggleHandler = ( trackName, id ) => ( isOpened ) => {
* @param {Object} props React props.
* @param {string} props.trackName The track event name to be recorded when toggling on FAQ items.
* @param {Array<FaqItem>} props.faqItems FAQ items for rendering.
* @param {string} props.className The class name for this component.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💅

props.className Is optional

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, updated in 43a1d02.

@puntope
Copy link
Contributor

puntope commented May 3, 2022

I saw some inconsistencies between spacing.

Screenshot 2022-05-03 at 13 12 01

Screenshot 2022-05-03 at 13 11 57

@puntope
Copy link
Contributor

puntope commented May 3, 2022

💅 To consider a refactor of this:

Screenshot 2022-05-03 at 13 19 47

Maybe using flex styling instead of absolute positioning the SVG.

@puntope
Copy link
Contributor

puntope commented May 3, 2022

The latest copies and the links of the FAQ can be found in the Marketing copy document in this post: pcTzPl-i7-p2#design-requirements. Need to request access in order to see the content.

Requested access.

@puntope puntope self-requested a review May 3, 2022 09:26
Copy link
Contributor

@puntope puntope left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the implementation 🙏

Left some comments and suggestions.

@ianlin
Copy link
Member Author

ianlin commented May 3, 2022

@puntope Thanks for the review!

Maybe using flex styling instead of absolute positioning the SVG.

Did you still see the overlapping on the text and the caret down icon? Because there was actually a simple commit 5aa5035 that might fix it by simply add more padding to the right.

Since we are using Panel component from Gutenberg for the FAQs so it's a bit tricky to override its styles using Flex styling, as they put the svg before the text in the code there. Let me know if I miss anything, thanks!

@ianlin ianlin requested a review from puntope May 3, 2022 12:36
@puntope
Copy link
Contributor

puntope commented May 4, 2022

Flex styling, as they put the svg before the text in the code there

flex-direction: row-reverse; would help with that. But I'll check with your fix 👌

@puntope
Copy link
Contributor

puntope commented May 4, 2022

In regards f82e29a

I still see reduced space in

How do I sync my products to Google free listings? and Can I run both Shopping ads and free listings campaigns at the same time?

Screenshot 2022-05-04 at 11 56 06

@puntope
Copy link
Contributor

puntope commented May 4, 2022

In regards 5aa5035

I still see the chevron quite close to the headline

Screenshot 2022-05-04 at 12 01 11

@ianlin
Copy link
Member Author

ianlin commented May 4, 2022

Hey @puntope thanks for the tip! I've updated the codes and it's ready for the review again.

flex-direction: row-reverse; would help with that.

Awesome, it worked, thanks and TIL! Updated in 641a397. I added it in js/src/components/faqs-panel/index.scss so both this component and js/src/setup-mc/setup-stepper/setup-accounts/faqs.js can use the same change.

I still see reduced space in
How do I sync my products to Google free listings? and Can I run both Shopping ads and free listings campaigns at the same time?

Ah thanks for the sharp eyes, finally got what you meant. It's the difference for the bottom spaces. Updated in
1232c2e, thanks!

Finally I also add a commit 486cc21 to make the question title's font style to be aligned with the design.

Comment on lines 13 to 16
position: unset;
right: unset;
top: unset;
transform: unset;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right: unset;
top: unset;

This two seems no necessary. Since right and top are not affecting static positioned elements.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Updated in 9e15573.

Copy link
Contributor

@puntope puntope left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ APPROVED

  • Checked the copy and is correct
  • Checked the design and match the Figma

Left some pending comment regarding the unnecessary override of right, and top props. But approved in advance.

@ianlin ianlin merged commit 533a9d4 into feature/1392-ux-improvements-on-get-started-page May 5, 2022
@ianlin ianlin deleted the add/1392-faqs branch May 5, 2022 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement The issue is a request for an enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants