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

Lativ theme: Unable to set a solid background color in global styles #80838

Open jp-imagines opened 1 year ago

jp-imagines commented 1 year ago

Quick summary

The Lativ theme uses a gradient background by default. You can change this to a different gradient, but selecting any solid background color does not work.

Steps to reproduce

  1. Activate the Lativ theme.
  2. Open global styles at Appearance > Editor > Styles > Edit.
  3. Click Background and try to select a solid background color.

What you expected to happen

The selected background color should apply to the site.

What actually happened

Nothing happens. The site's CSS shows the background color is applied via a background-color CSS style at the same place as a background rule for the gradient, which overwrites the solid color.

Impact

Some (< 50%)

Available workarounds?

Yes, easy to implement

Platform (Simple and/or Atomic)

Atomic

Logs or notes

Only tested on Atomic so far, and only on Lativ. Unsure if this affects other themes (including themes where a gradient background isn't the default).

Workaround: Create a custom gradient with two identical colors and set that as the background instead. (CSS also works.)

Initial report: 6696455-zd-a8c

github-actions[bot] commented 1 year ago

Support References

This comment is automatically generated. Please do not edit it.

cuemarie commented 1 year ago

📌 SCRUBBING : RESULT - Replicated / Could Not Replicate / Uncertain

📌 FINDINGS/SCREENSHOTS/VIDEO

Screenshots/Recordings

Atomic - Serif Mint style

https://github.com/Automattic/wp-calypso/assets/27249804/e21ee9e5-dcff-4d3c-b2a2-7c05a57853c6

Simple - Default Style

https://github.com/Automattic/wp-calypso/assets/27249804/086dce3e-a9cc-4176-a56a-9c688f76984f

📌 ACTIONS

dsas commented 1 year ago

Looks like it is a Gutenberg bug: https://github.com/WordPress/gutenberg/issues/42105

mgozdis commented 12 months ago

Another user report here: 6867014-zd-a8c

Set all gradient control points to solid color as a workaround, however, if the user ever selects a solid background color again, it immediately reverts to the default gradient again.

jp-imagines commented 12 months ago

Another report in 6898452-zd-a8c

cuemarie commented 12 months ago

Noted this here: p1695047721869529-slack-C03EUR81G3V

jordesign commented 12 months ago

There's some discussion in https://github.com/WordPress/gutenberg/issues/47391 on how to approach this kind of problem - looks like it's a not-so-simple solution

mdtanjid0 commented 11 months ago
devNigel commented 11 months ago

Another report: 6960580-zd-a8c

edequalsawesome commented 9 months ago

Also reported in 7462451-zen, follow-up requested in 7462546-zen

kspilarski commented 8 months ago

Also cannot set a solid background color in Global Styles settings in the Lativ theme on 7546597-zen

ckmccoy2 commented 7 months ago

another instance 7622563-zd. Was able to set an all while background (what user wanted), by creating a custom gradient and setting both to #ffffff