Feliz.ViewEngine
Feliz.ViewEngine copied to clipboard
Border style type mismatch
I'm having trouble calling
prop.style [ style.borderBottom (1, style.borderStyle.solid, "#888") ]
due to
error FS0041: No overloads match for method 'borderBottom'.Known types of arguments: int * Styles.IStyleAttribute * string
Available overloads:
- static member style.borderBottom : width:Styles.ICssUnit * style:Styles.IBorderStyle * color:string -> Styles.IStyleAttribute // Argument 'width' doesn't match
- static member style.borderBottom : width:int * style:Styles.IBorderStyle * color:string -> Styles.IStyleAttribute // Argument 'style' doesn't match
The issue is that style.borderStyle.solid (generated through Interop.mkStyle) is an IStyleAttribute
whereas style.borderBottom (_,_,_), expects IBorderStyle instead of IStyleAttribute.
Do you want to make a PR for this?