css

Drew Verlee 2023-04-13T21:13:30.854279Z

Any idea's why inserting this svg is causing my app to have a heart attack (i get some vague react error):

(def badge-processing
  [:svg {:view-box "0 0 30 30" :style "enable-background:new 0 0 30 30"}
   [:style {:type "text/css"} ".st0{fill-rule:evenodd;clip-rule:evenodd;fill:#FFFFFF;}" ".st1{fill-rule:evenodd;clip-rule:evenodd;fill:#9EE7EC;}"]
   [:path
    {:id "Fill-1"
     :class "st0"
     :d "M26,15c0,6.1-4.9,11-11,11C8.9,26,4,21.1,4,15S8.9,4,15,4C21.1,4,26,8.9,26,15"}]
   [:path
    {:id "Fill-2"
     :class "st1"
     :d "M15,5c5.5,0,10,4.5,10,10s-4.5,10-10,10C9.5,25,5,20.5,5,15S9.5,5,15,5z M15,21c-0.6,0-1,0.4-1,1 s0.4,1,1,1s1-0.4,1-1S15.6,21,15,21z M20.6,10.3c-0.4-0.3-1-0.3-1.3,0.1l0,0L15,14.6l-1.4-1.4l-0.1-0.1c-0.4-0.3-1-0.3-1.3,0.1 c-0.4,0.4-0.4,1,0,1.4l0,0l2.1,2.1l0.1,0.1c0.4,0.3,1,0.3,1.3-0.1l0,0l4.9-4.9l0.1-0.1C21,11.3,21,10.7,20.6,10.3L20.6,10.3 L20.6,10.3z M22,14c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S22.6,14,22,14z M8,14c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S8.6,14,8,14z M15,7c-0.6,0-1,0.4-1,1l0,0v2l0,0.1c0.1,0.5,0.5,0.9,1,0.9c0.6,0,1-0.4,1-1l0,0V8l0-0.1C15.9,7.4,15.5,7,15,7z"}]])

Drew Verlee 2023-04-13T21:36:49.073729Z

never mind, this is now likely a not an issue 🙂

Drew Verlee 2023-04-14T19:19:04.651579Z

I was wrong, i would still love an answer to this question even a wild guess.

Drew Verlee 2023-04-15T01:24:39.266389Z

the answer was the :style "enable-background:new 0 0 30 30" for reasons i don't understand.