Enhancement: Allow conditional calendar event background color based on text contained in the event #1633
swampylee
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So for example, I've tried to use code similar to the code below which should look at each event and if it contains "Time" it should change the background of the event to red and if it contains "CONFIRMED" it should change the background color of the event to Green. I couldn't get it to work so I ran it through ChatGPT and it basically said that
The Problem
You’re trying to match event titles like:
John Smith - Full Bath & Groom (Medium) with Una - Cockerpoo - CONFIRMED
But that string lives inside .bubble-event-name, not as an attribute. So CSS can't target the outer .bubble-event based on that text.
✅ The Only Reliable Fix (Current Version)
Bubble Card v3.0.0 does NOT support text-based conditional styling via CSS alone.
Here's the code:
Beta Was this translation helpful? Give feedback.
All reactions