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

Remove G Site Kit icons on dashboard metabox and screen option

Open ThierryA opened this issue 7 years ago • 14 comments

Bug Description

The G Site Kit icon is rendered on the dashboard metabox and screen option which does not adhere to WordPress Standards. Instead, only "Site Kit" or "Site Kit by Google" text should be rendered.

Steps to reproduce

  1. Go to 'Dashboard'
  2. Click on 'Screen option'

Screenshots

Screenshot 2019-11-19 at 10 03 01

Screenshot 2019-11-19 at 10 03 11


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

Acceptance criteria

  • For the screen option, display plain text: "Site Kit Summary" instead of the current image.
  • For the dashboard metabox, display plain text: "Site Kit Summary" instead of the current image.
  • For the lefthand nav menu, decrease icon width to 16px

Implementation Brief

  • Change https://github.com/google/site-kit-wp/blob/6cc90cccb72fea847915012ca9a223c6088990f6/includes/Core/Admin/Dashboard.php#L118 to remove the text SVG and use text instead (it should read "Site Kit Summary"
  • Adjust size of icon in https://github.com/google/site-kit-wp/blob/6cc90cccb72fea847915012ca9a223c6088990f6/includes/Core/Admin/Screen.php#L132 to be 16px high/wide

Changelog entry

  • Update usage of G icon in admin menu, dashboard widget and screen options to align better with WordPress admin UI.

ThierryA avatar Nov 19 '19 09:11 ThierryA

perfect :) thanx! and in addition I would really recommend to reduce the 'G' logo in the sidebar to keep the line spacing provided by wordpress as other respected plugin authors do. Bildschirmfoto 2019-11-19 um 10 18 06

TomMuc1 avatar Nov 19 '19 09:11 TomMuc1

perfect :) thanx! and in addition I would really recommend to reduce the 'G' logo in the sidebar to keep the line spacing provided by wordpress as other respected plugin authors do.

Yep, will be reduced to 16px

ThierryA avatar Nov 19 '19 09:11 ThierryA

IB ✅

felixarntz avatar Nov 19 '19 12:11 felixarntz

This is verified. The G is now 16 x 16 on the left nav. Also confirmed the copy states 'Site Kit Summary' as well as removing the G logo from Screen options

image

Passed QA ✅

cole10up avatar Nov 20 '19 21:11 cole10up

yes. but you can still clearly see that there is a bug with an additional blank line under the 'g' in the page bar. the distance from 'sitekit' to 'posts' is much too big.

TomMuc1 avatar Nov 20 '19 22:11 TomMuc1

Do you mind if I create a separate bug for this spacing?

cole10up avatar Nov 20 '19 22:11 cole10up

feel free if you're paid on a per bug basis :)

TomMuc1 avatar Nov 20 '19 22:11 TomMuc1

Ahah! What an incentive that would be! "Broken in Netscape Navigator 6" ;)

I'll get this bug in and reference it in this ticket for you.

cole10up avatar Nov 20 '19 22:11 cole10up

That spacing is not a bug; it's an intentional menu separator in the WordPress Admin. There is one used to separate out site-wide sections like the WP Dashboard, Site Kit, and Jetpack and content-type sections like Posts, Media, Pages, and Comments. There's another after the content-type sections for things like Appearance and Settings. Those have always been there and aren't the result of our icon:

Screenshot 2019-11-20 22 22 17 Screenshot 2019-11-20 22 22 03 Screenshot 2019-11-20 22 21 39

tofumatt avatar Nov 20 '19 22:11 tofumatt

Thanks for checking on that!

cole10up avatar Nov 20 '19 22:11 cole10up

ok. but then 'site kit' should definetly not show up under 'site-wide'. even if google thinks 'be loud - be on top' ...

TomMuc1 avatar Nov 20 '19 22:11 TomMuc1

ok. but then 'site kit' should definetly not show up under 'site-wide'. even if google thinks 'be loud - be on top' ...

Thanks for sharing your opinion @TomMuc1 . We have a user-first approach, in fact that is what matters the most to us. Looking at the various sections in the admin bar, the "site-wise" section is typically used for Hubs, Dashboards etc. Site Kit totally falls under this category given that it provides site-wise insights and dashboards. From a user perspective, it wouldn't make sense to have it in the post types list, settings or else section.

With that said, menu ordering preferences is very personal and thankfully, anyone is free to either re-order it via the code or use a free plugin allowing to customize admin menu order according to each and everyone preferences 😉

ThierryA avatar Nov 21 '19 08:11 ThierryA

Bildschirmfoto 2019-11-21 um 09 42 29 Bildschirmfoto 2019-11-21 um 09 43 14

is it a 'user first approach' or a 'google first approach'? if you look at the two oversized colorful icons that you have thankfully removed, you'll think of the second rather than the first. many other statistics plugins have decided to use the lower part of the sidebar - but of course there are others who said 'main thing high up'. what is - rightly - today the biggest criticism of google worldwide is its encroachment in many ways. but surely that's a question you have to decide for yourself ...

cheers tom

TomMuc1 avatar Nov 21 '19 08:11 TomMuc1

the logo fits now. thanx! Bildschirmfoto 2019-11-22 um 11 21 49

TomMuc1 avatar Nov 22 '19 10:11 TomMuc1