Feliz.ViewEngine icon indicating copy to clipboard operation
Feliz.ViewEngine copied to clipboard

Border style type mismatch

Open pkese opened this issue 4 years ago • 1 comments

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.

pkese avatar Aug 03 '21 17:08 pkese

Do you want to make a PR for this?

dbrattli avatar Aug 07 '21 08:08 dbrattli