site-kit-wp icon indicating copy to clipboard operation
site-kit-wp copied to clipboard

Full width blue background on GA4 notices

Open eclarke1 opened this issue 5 years ago • 8 comments

Feature Description

Some Figma screens have the blue bar full width, others have the blue bar at the end of the dropdown, which is correct?

Related Asana task


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

Acceptance criteria

  • The "Learn more" link in the blue notice in the Analytics setup flow (UA, GA4, and GA4-transitional only) should always be aligned to the very right of the notice, even if the screen is very wide.
  • Instead, the blue notice in that flow should have its maximum width limited in a way that prevents the "Learn more" link from appearing too far away / too decoupled from the notice main content. (There is no exact number given, please include @Pratheep-lab in the PR review for this.)

Implementation Brief

Using _googlesitekit-settings-notice.scss update .googlesitekit-settings-notice adding a max-width of 1098px.

Test Coverage

  • n/a

Visual Regression Changes

  • Check visual tests

QA Brief

  • Using storybook and / or the analytics set up flow, verify that the maximum width of the GA4 notice is 1098px

Changelog entry

  • Improve Google Analytics 4 notices.

eclarke1 avatar Jun 09 '21 16:06 eclarke1

update &--info adding a max-width of 1000px.

@Hazlitte this limit should really be applied to all notices, not just the info variant.

Regarding the max-width, it would be good to base this number on something to align with other elements. Unfortunately the select boxes vary a bit on the set up / settings forms depending on the length of the contents. I found 1098px however lines up consistently on the account creation form since the text inputs all have the same width and gap between.

image

In this case, it's 1098 because each text input is 350px wide with 24px between. The image above includes the extra 24px on the end so we remove that to come to 1098.

image

This looks pretty good on the setup/settings views as well

image

Let's start with this and iterate if we get more input from design. cc: @Pratheep-lab

aaemnnosttv avatar Jun 16 '21 10:06 aaemnnosttv

Thanks @aaemnnosttv, I have updated the IB to make this change to the settings notice body class so that it is applied to all notices.

Hazlitte avatar Jun 17 '21 09:06 Hazlitte

Thanks @aaemnnosttv, I have updated the IB to make this change to the settings notice body class so that it is applied to all notices.

@Hazlitte – this would result in an overall larger element since .googlesitekit-settings-notice has padding which would be outside of the max-width applied to the body. Let's keep the max width applied to the .googlesitekit-settings-notice itself.

I'll update the IB with this since it's a simple change to the selector, otherwise –

IB ✅

aaemnnosttv avatar Jun 17 '21 14:06 aaemnnosttv

QA Update: ❌

@johnPhillips while this is looking great on larger screens, on smaller screens there are issues. This site has a Google Analytics account with UA and GA4 properties. When connecting, the GA4 notice is cut off as per screenshot. Also, when I go to the Analytics settings page and edit, the same issue occurs. I've been through the other flows on mobile and the notices look fine.

image

Verified:

While going through the different GA4 analytics flow, the notices are a maximum width of the GA4 notice is 1098px

image

image

wpdarren avatar Jun 23 '21 14:06 wpdarren

@wpdarren Good catch, thanks. This appears to be a pre-existing issue as when I revert the change the issue is still visible. It might be to do with the dropdown overflowing the container, because the content wraps perfectly when I remove the dropdown from the markup:

Screenshot 2021-06-23 at 16 41 30

I'm very happy to investigate further but am conscious this was estimated as a 3pt 1-liner to address a different problem. @aaemnnosttv Should I investigate under this issue or is it out of scope?

johnPhillips avatar Jun 23 '21 15:06 johnPhillips

@wpdarren the mobile issue looks like the same as this one: https://github.com/google/site-kit-wp/issues/3497 If so, it would be great if you could add any additional information on that one if needed.

If that's the only issue here then I think we can leave it to be handled in that issue. Was there anything else?

aaemnnosttv avatar Jun 24 '21 15:06 aaemnnosttv

@aaemnnosttv I couldn't see anything else, so will have a quick run through it and then get this to approved. I'll also have a look at #3497 and add any additional information :)

wpdarren avatar Jun 24 '21 15:06 wpdarren

QA Update: ✅

  • Verified that the maximum width of the GA4 notice is 1098px on large screen sizes
  • Also checked the notices on smaller screens to make sure no styling issues exist.

Screenshot 1 - Screenshot 2 - Screenshot 3

wpdarren avatar Jun 25 '21 11:06 wpdarren