Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.4k stars 1.98k forks source link

Custom Colours: Fix broken functionality on Atomic sites. #52759

Open kwight opened 3 years ago

kwight commented 3 years ago

Custom Colours started as a feature on Simple sites, and was then quickly ported to wpcomsh for use by Atomic sites. It was a rush job (I know, I was part of it), and some of it might not be working properly after a lack of maintenance (or bugs missed in the original implementation).

Let's:

See also: p9F6qB-4rE-p2

Screen Shot 2021-05-11 at 12 55 46 PM

Problems found on Seedlet:

General problems:

kwight commented 3 years ago

Related smaller task: 482-gh-Automattic/wpcomsh

jordesign commented 3 years ago

I"m happy to help with testing and verification between Simple/Atomic.

Do we want to approach this with certain theme/s as a baseline?

kwight commented 3 years ago

@jordesign Good question – Twenty Twenty One and Twenty Twenty come to mind, or maybe the Varia ("recommended") themes? @kathrynwp any suggestions for three themes to focus on during testing?

kathrynwp commented 3 years ago

In addition to Twenty Twenty One and Twenty Twenty, how about Hever, since it's in the signup flow and used by a ton of people? There is also currently a bug with previewing some of the colours in Hever even on Simple sites that would be great to fix at the same time. (for example, try to change the background colour in Hever - it's not visible in the preview area, only visible once the changes are saved).

jordesign commented 3 years ago

OK great - I'm EOD today - but tomorrow I can test:

andres-blanco commented 3 years ago

Twenty Twenty One and Twenty Twenty don't seem to exhibit this problem. The behaviour is the same on Atomic and Simple regarding the colors in the customizer. This might be due to the color section in the customizer being different in this themes, there's no "Color Palette" or color circles to pick: image

I will keep searching for specific problems on the rest of themes.

jordesign commented 3 years ago

I'm going to skip testing Seedlet for now - based on those linked issues above.

jordesign commented 3 years ago

I started some testing for Hever - and it ended up being enough to warrant a P2... pd2qbF-ck-p2

DanielSmithMichigan commented 3 years ago

I tried every recommended theme, and determined: Are custom colors completely/mostly broken for this theme on atomic?

My criteria was to change each color, and make sure it modified something on the page. I found that these were "completely/mostly broken:"

Not completely broken but not really working either:

Other notes:

kwight commented 3 years ago

For most themes, "link color" didn't change the color of the menu items. Is that expected behavior?

No, that doesn't surprise me – that color is more for text links within content (often styled differently from the menu items in the header).

Is it just me, or do most themes not really affect the look of my site that much?

Also not a surprise; themes support a varying degree of color customization, and subtle changes were not uncommon when we were writing all of the annotations.