Change from Linear-gradient background to a static background color is not applied properly

Scenario:

3 Divs, every one of them have the same class “custom-button”.
For all of those divs (more precisely, for a class "custom-button), I set a background color to linear-gradient.

Problem:

Once I decided to change the background color from linear gradient to a static one, those changes are not applied.

Screencast:
https://www.awesomescreenshot.com/video/9147050?key=af9ad383018557ea15a6354bd4f5e92a

Please write a brief description of the bug you’re experiencing, including what you expect should happen and what is currently happening.

Environment info

  • WordPress version: 6.0
  • Gutenberg Plugin version: -
  • Cwicly Plugin version: 1.1.5.2
  • Cwicly Theme version: 1.0.3

Hi @Dev.tomi,

Once again, you should be adding the class as an additional class and not the class itself (since the class for a block has to be unique).

Cwicly applies styles to classes, not IDs. So it makes sense that only the last element with that same class name will be the one applying the styles (cascading).

I don’t see the issue here.

You’re right, I have to get used to Cwicly applying styles to Class, not IDs. Thank you.

1 Like