question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Successful set up banner icon is small as compare to Figma design

See original GitHub issue

Asana bug bash task: https://app.asana.com/0/1202913874897532/1203046400278414

Successful set up banner icon is small as compare to Figma design. It is looking very small and cornered on big screens.

image (11) image (12)


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • The image size for the Success Banner should be increased as per the Figma design.
  • Additionally, the image should appear besides (and not above) the title as shown in Figma for mobile screen sizes.
  • These changes should apply to all icons for every success banner, not just the Thank with Google ones. See @sashadoes’s comment below: https://github.com/google/site-kit-wp/issues/5934#issuecomment-1277966586
    • Essentially, the success banners should be consistent regarding icon size/placement, in line with what’s in the Figma design for Thank with Google.

Implementation Brief

  • Inside BannerNotification https://github.com/google/site-kit-wp/blob/48952f8f09ed585bb3b6b1cf3fd4fd7f88b4fafc/assets/js/components/notifications/BannerNotification/index.js#L266-L272
  • Place a new block with WinImageSVG next to the .googlesitekit-publisher-win__title wrapper (containing the title and the badge) and make it visible only on mobiles. At the same time, the “original” WinImageSVG should be hidden for mobiles. With this scenario FE will show “original” WinImageSVG on tablet+ screens and “small” WinImageSVG on mobiles.
  • Wrap.googlesitekit-publisher-win__title block and WinImageSVG in a new flex container and make them inline as on design
  • WinImageSVG should be styled as per the Figma designs. (105px height on tablet+ screens and 72px on mobiles)
  • If there’s no WinImageSVG provided, the wrapper containing the title and the badge should expand to be 100% wide

Test Coverage

  • Add a new scenario to VRT suite (if not already present)
  • VRT images will need to be updated

QA Brief

  • Trigger the setup success banner by setting up a new module, or access the following URL if module is already set up: /wp-admin/admin.php?page=googlesitekit-dashboard&notification=authentication_success&slug=analytics#traffic
  • Ensure the SVG within the banner is besides the title on small screens with an updated size.
  • Setup all modules to ensure there are no regressions.
  • Note that the dimensions in the Figma designs are incorrect based on existing SVGs we have. The height should be 75px on small screens and 105px on large ones, with the width set automatically.

Changelog entry

  • Increase size of banner icons in setup notification.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:20

github_iconTop GitHub Comments

1reaction
asvinbcommented, Oct 20, 2022

Thanks @sashadoes . A few more tweaks:

  1. Can you update the “Test Coverage” section to remove unit tests and instead add scenarios within the VRT suite?
  2. Let’s make sure that if there’s no WinImageSVG provided, the wrapper containing the title and the badge should expand to be 100% wide.
  3. Can you let me know about the height of the SVG? As per my previous comment, the height is 105px, but in the IB you suggested 110px.

Thanks!

1reaction
asvinbcommented, Oct 19, 2022

@sashadoes Thanks for the IB and I suggest we make the following tweaks to it:

  • Let’s avoid putting code in the IB as it can prompt the engineer working on the code to just copy and paste, and the IB reviewer will tend to CR the code at the IB stage. For e.g we are trying to avoid nesting CSS selectors within media queries.
  • About the comment to implement option 2, instead having the engineer to go through the list of comments, can you copy over the approach within the IB?
  • About the following:

    Inside BannerNotification put a new WinImageSVG block next to title

    • Can you be more explicit (without the code), and rather mention putting WinImageSVG next to the wrapper containing the title and the badge? Reading the IB, I thought we should put WinImageSVG next to the title variable.
  • Instead of using display: inline-block, how about we use flex on the parent element and the set the googlesitekit-publisher-win__title to grow if there’s no WinImageSVG.
  • Why should we set the height of WinImageSVG to 120px? 🤔 Checking at the designs, I noticed the icon is 105px. Let me know if am missing something here 😁 .
  • About the tests needed, I don’t think we need unit tests, rather we should add a new scenario to our VRT suite (if not already present). Most likely since it’s a global change, VRT images will need to be updated.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Every icon best practice you need to know - General Discussion
I'm a Figma tutor and get asked about icon best practices a LOT. I made this cheat sheet for my students and thought...
Read more >
How To Design ADS & BANNERS For SUCCESSFUL ...
In this video we'll go through designing a banner for an online marketing campaign in Figma. We'll go through best practices and examples...
Read more >
Canva vs Figma: Which App Is Better For You? - Glorify
The most striking difference when comparing Canva vs. Figma is the type of design you can create with them. Canva makes a great...
Read more >
Learn How to Create a Design System in Figma
I'll have this set of icons already in figma when we go over, ... a little snack bar indicating the the process successfully...
Read more >
Canva/Figma? What's The Best Design Tool In 2020? | Medium
Tools such as Canva, Figma, Sketch, and many more allow for seamless designing on the go! It is not a dream anymore. Anybody...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found