Codeinwp / raft

Issues should be created in https://github.com/Codeinwp/otter-blocks
7 stars 2 forks source link

Adds color slugs compatibility #120

Closed JohnPixle closed 3 months ago

JohnPixle commented 3 months ago

Added the css fallback at the end of the file.

.has-ti-bg-inv-background-color {background-color:var(--wp--preset--color--raft-bg-inv);}
.has-ti-bg-background-color {background-color:var(--wp--preset--color--raft-bg);}
.has-ti-bg-alt-background-color {background-color:var(--wp--preset--color--raft-bg-alt);}
.has-ti-fg-alt-color  {color:var(--wp--preset--color--raft-fg-alt);}
.has-ti-accent-background-color {background-color:var(--wp--preset--color--raft-accent);}
.has-ti-accent-secondary-background-color {background-color:var(--wp--preset--color--raft-accent-secondary);}

This should apply the styles on both the frontend and the editor. I will test it.

Closes #119 .

pirate-bot commented 3 months ago

Plugin build for 6c846d3c9f8c8ece22dc5d2c4a63d33f3c1b251a is ready :bellhop_bell:!

JohnPixle commented 3 months ago

@abaicus I did at the CSS, but I think It messed up judging from the failing test 🙈 Anyway, feel free to adapt as required, I'll leave it to you.

I tested the build on a taste instance and it works as expected with the colors. So basically it works.

Thanks in advance.

abaicus commented 3 months ago

@JohnPixle Should be fine now! 👍🏻

pirate-bot commented 3 months ago

Plugin build for cc68aae1a446d132a2056c12650fdc7376800b88 is ready :bellhop_bell:!

pirate-bot commented 3 months ago

:tada: This PR is included in version 1.1.5 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: