Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds color slugs compatibility #120

Merged
merged 2 commits into from
Apr 26, 2024
Merged

Conversation

JohnPixle
Copy link
Contributor

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 .

Added the css fallback at the end of the file.
@JohnPixle JohnPixle requested a review from abaicus April 25, 2024 10:32
@pirate-bot
Copy link
Contributor

Plugin build for 6c846d3 is ready 🛎️!

@JohnPixle
Copy link
Contributor Author

JohnPixle commented Apr 25, 2024

@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
Copy link
Contributor

abaicus commented Apr 25, 2024

@JohnPixle Should be fine now! 👍🏻

@abaicus abaicus changed the base branch from master to development April 25, 2024 10:50
@pirate-bot
Copy link
Contributor

Plugin build for cc68aae is ready 🛎️!

@abaicus abaicus merged commit 46aa5ea into development Apr 26, 2024
7 checks passed
@pirate-bot
Copy link
Contributor

🎉 This PR is included in version 1.1.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@pirate-bot pirate-bot added the released Indicate that an issue has been resolved and released in a particular version of the product. label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Indicate that an issue has been resolved and released in a particular version of the product.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CSS Fallback for color slugs
3 participants