Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Update marketing tab styles #4794

Merged
merged 18 commits into from
Jul 16, 2020
Merged

Update marketing tab styles #4794

merged 18 commits into from
Jul 16, 2020

Conversation

jconroy
Copy link
Member

@jconroy jconroy commented Jul 10, 2020

In progress work for updating styles used on the marketing tab and coupons pages to reflect designs below

Changes

  • Updated styles of the coupons page recommended extensions (see below)
  • Moved to use local copies of product icons/svgs so that inline svgs could be used far more easily - making use of a few existing icons from @wordpress/icons
  • Fixed instances of "woocommere-admin"
  • Moved to use theme colors

Screenshots

Screen Recording 2020-06-23 at 12 39 PM

redline-for-p2

Other

  • Tested in IE11
  • Using SVG component with recommended accessibility fields

Detailed test instructions:

  • Check out this branch
  • Open test site
  • Go to Marketing > Overview and Marketing > Coupons
  • Check design

Changelog Note:

Tweak: Style improvements for Marketing hub.

Copy link
Contributor

@danielbitzer danielbitzer left a comment

Choose a reason for hiding this comment

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

Looks great! Left a few comments

client/marketing/components/product-icon/icons/index.js Outdated Show resolved Hide resolved
client/marketing/components/product-icon/icons/index.js Outdated Show resolved Hide resolved
client/marketing/coupons/style.scss Outdated Show resolved Hide resolved
@danielbitzer
Copy link
Contributor

@j111q @jconroy just one other thought on the Marketing > Overview tab we have a max-width on the cards. I noticed on a wide screen these components don't look so great. Especially the knowledge base card. Should we be adding a max-width the cards on the coupons page?

@jconroy
Copy link
Member Author

jconroy commented Jul 15, 2020

I noticed on a wide screen these components don't look so great.

Just noting that the original design spec has them as fluid/full width to match the table/components - so that's what we've gone with

@jconroy
Copy link
Member Author

jconroy commented Jul 15, 2020

@j111q @danielbitzer I opted to go with $theme-color - I thought a few times working on this we should just keep things consistent for the time being

Screen Shot 2020-07-15 at 4 35 51 pm

@j111q
Copy link

j111q commented Jul 15, 2020

@jconroy @danielbitzer Great points and thank you for the thoughts. Yes, I think going with $theme-color is the best solution too. We did want to introduce the new blue, but I'd agree it's jarring, and since the new WC Home page does the same, let's align with using $theme-color instead.

Re: max-width of cards, yes, I believe the original design intended to match the width of the table, which I'd agree with. If we introduce a max-width for the cards, I'd like to have a max-width for the table and other components like the notice banner as well.

@jconroy jconroy added the focus: marketing Related to Marketing Features label Jul 15, 2020
@jconroy
Copy link
Member Author

jconroy commented Jul 15, 2020

Updated based on feedback and re-tested in browsers including edge and ie11

Also flipped to using var(--wp-admin-theme-color) instead of $theme-color as suggested by design

@jconroy jconroy added this to the 1.4.0 milestone Jul 15, 2020
Copy link
Contributor

@JPry JPry left a comment

Choose a reason for hiding this comment

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

Also flipped to using var(--wp-admin-theme-color) instead of $theme-color

This doesn't seem to be working on the Coupons page. I don't see any hover affect in my local testing.

I've also noted a few other issues I came across.

@JPry
Copy link
Contributor

JPry commented Jul 15, 2020

One other thing that's not quite in the scope of the PR: I noticed that we're making use of the @woocommerce/components module. We should ensure this is included in the dependencies of the package.json file.

Copy link
Contributor

@JPry JPry left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@danielbitzer
Copy link
Contributor

Looks like CSS variables like --wp-admin-theme-color were added in 8.4.0. WordPress/gutenberg#23048

@jconroy
Copy link
Member Author

jconroy commented Jul 16, 2020 via email

@danielbitzer
Copy link
Contributor

danielbitzer commented Jul 16, 2020

So I do need to bundle the other 3 right?

I'm afraid so. Sorry I should have checked compatibility before I suggested using @wordpress/icons.

@jconroy
Copy link
Member Author

jconroy commented Jul 16, 2020

Sorry I should have checked

@danielbitzer All good! its more my own inexperience, thanks for taking a look. I've added them in.

@jconroy jconroy merged commit 664a79e into main Jul 16, 2020
@jconroy jconroy deleted the update/marketing-style-tweaks branch July 16, 2020 05:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
focus: marketing Related to Marketing Features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants