Fix: cssVars API not working correctly on Booker Timeslot selection page (#8296)
* Use a method out of react scope to set CSS vars as that doesnt need react * Refactor
This commit is contained in:
1 parent
585e36793a
commit
6fd64b2209
7 files changed
+89
-56
No files matched your search
@@ -20,6 +20,19 @@ function App() {
|
||||
action: "*",
|
||||
callback,
|
||||
});
|
||||
|
||||
api("ui", {
|
||||
cssVarsPerTheme: {
|
||||
light: {
|
||||
"cal-border-booker": "red",
|
||||
"cal-border-booker-width": "20px",
|
||||
},
|
||||
dark: {
|
||||
"cal-border-booker": "red",
|
||||
"cal-border-booker-width": "5px",
|
||||
},
|
||||
},
|
||||
});
|
||||
});
|
||||
return () => {
|
||||
api.then((api) => {
|
||||
|
||||
Reference in new issue
Block a user