SolidJSS
SolidJSโ€ข15mo agoโ€ข
1 reply
Greenman999

custom css classes not applied somehow

Hi,

i have this code:
<For each={alertsManager.getAlerts()}>
                        {(alert) => (
                            <div class={"flex alert alert-" + alert.type}>

alert.type is success and with daisyui and tailwindcss the div should have a green background color. However the div is colored like default just like alert-success wasnt there. If i manually add alert-success to the class prop it works. If I remove it after the concatinated version works somehow..
Can someone help me?
Was this page helpful?