Zaid-Ajaj / Feliz

A fresh retake of the React API in Fable and a collection of high-quality components to build React applications in F#, optimized for happiness
https://zaid-ajaj.github.io/Feliz/
MIT License
534 stars 78 forks source link

Filter: Blur doesn't work #565

Open lukaszkrzywizna opened 1 year ago

lukaszkrzywizna commented 1 year ago

According to documentation https://developer.mozilla.org/en-US/docs/Web/CSS/filter-function/blur Filter's blur accepts three units: px, rem, or none (for 0).

Feliz's Style module expects to put:

Using any of those doesn't work. However, using custom style works:

style.custom("filter", "blur(2px)")

I guess those functions should be replaced with a new one using an ICssUnit or something similar.

Zaid-Ajaj commented 1 year ago

Hi @lukaszkrzywizna, thanks for filing the issue. I will see if I can fix it sometime this week. Otherwise if you want to take a stab at it, please feel free to do so 😄

stmax82 commented 4 months ago

I just ran into the same issue and fixed it but I'm too dumb to figure out how to run the tests.