Skip to content

Commit f9a2d3d

Browse files
authored
Merge pull request #10 from vangberg/fix-case-for-flex-styles
Fix names for a number of properties
2 parents 70ea97b + 7989476 commit f9a2d3d

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

src/Styles.fs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ type style () =
9393
/// **Tip**: A positioned element is an element with the position property set to: relative, absolute, or fixed.
9494
///
9595
/// **Tip**: This property is useful if you want to create overlapping elements.
96-
static member inline zIndex(value: int) = Interop.mkStyle "zIndex" value
96+
static member inline zIndex(value: int) = Interop.mkStyle "z-index" value
9797
/// Sets the margin area on all four sides of an element. It is a shorthand for margin-top, margin-right,
9898
/// margin-bottom, and margin-left.
9999
static member inline margin(value: int) = Interop.mkStyle "margin" (string value + "px")
@@ -317,26 +317,26 @@ type style () =
317317
/// Sets the width of the padding area on the right of an element.
318318
static member inline paddingRight(value: int) = Interop.mkStyle "padding-right" (string value + "px")
319319
/// Sets the width of the padding area on the right of an element.
320-
static member inline paddingRight(value: ICssUnit) = Interop.mkStyle "paddingRight" value
320+
static member inline paddingRight(value: ICssUnit) = Interop.mkStyle "padding-right" value
321321
/// Sets the height of the padding area on the top of an element.
322322
static member inline paddingTop(value: int) = Interop.mkStyle "padding-top" (string value + "px")
323323
/// Sets the height of the padding area on the top of an element.
324324
static member inline paddingTop(value: ICssUnit) = Interop.mkStyle "padding-top" value
325325
/// Sets the flex shrink factor of a flex item. If the size of all flex items is larger than
326326
/// the flex container, items shrink to fit according to flex-shrink.
327-
static member inline flexShrink(value: int) = Interop.mkStyle "flexShrink" value
327+
static member inline flexShrink(value: int) = Interop.mkStyle "flex-shrink" value
328328
/// Sets the initial main size of a flex item. It sets the size of the content box unless
329329
/// otherwise set with box-sizing.
330-
static member inline flexBasis (value: int) = Interop.mkStyle "flexBasis" value
330+
static member inline flexBasis (value: int) = Interop.mkStyle "flex-basis" value
331331
/// Sets the initial main size of a flex item. It sets the size of the content box unless
332332
/// otherwise set with box-sizing.
333-
static member inline flexBasis (value: float) = Interop.mkStyle "flexBasis" value
333+
static member inline flexBasis (value: float) = Interop.mkStyle "flex-basis" value
334334
/// Sets the initial main size of a flex item. It sets the size of the content box unless
335335
/// otherwise set with box-sizing.
336-
static member inline flexBasis (value: ICssUnit) = Interop.mkStyle "flexBasis" value
336+
static member inline flexBasis (value: ICssUnit) = Interop.mkStyle "flex-basis" value
337337
/// Sets the flex grow factor of a flex item main size. It specifies how much of the remaining
338338
/// space in the flex container should be assigned to the item (the flex grow factor).
339-
static member inline flexGrow (value: int) = Interop.mkStyle "flexGrow" value
339+
static member inline flexGrow (value: int) = Interop.mkStyle "flex-grow" value
340340
/// Sets the length of time a transition animation should take to complete. By default, the
341341
/// value is 0s, meaning that no animation will occur.
342342
static member inline transitionDuration(timespan: TimeSpan) =
@@ -591,7 +591,7 @@ type style () =
591591
/// Sets the color of an element's left border.
592592
///
593593
/// It can also be set with the shorthand CSS properties border-color or border-bottom.
594-
static member inline borderLeftColor (color: string) = Interop.mkStyle "borderLeftColor" color
594+
static member inline borderLeftColor (color: string) = Interop.mkStyle "border-left-color" color
595595
/// Sets an element's border.
596596
///
597597
/// It sets the values of border-width, border-style, and border-color.
@@ -2134,13 +2134,13 @@ module style =
21342134
/// Sets whether or not to display borders on empty cells in a table.
21352135
type emptyCells =
21362136
/// Display borders on empty cells. This is default
2137-
static member show = Interop.mkStyle "emptyCells" "show"
2137+
static member show = Interop.mkStyle "empty-cells" "show"
21382138
/// Hide borders on empty cells
2139-
static member hide = Interop.mkStyle "emptyCells" "hide"
2139+
static member hide = Interop.mkStyle "empty-cells" "hide"
21402140
/// Sets this property to its default value
2141-
static member initial = Interop.mkStyle "emptyCells" "initial"
2141+
static member initial = Interop.mkStyle "empty-cells" "initial"
21422142
/// Inherits this property from its parent element
2143-
static member inheritFromParent = Interop.mkStyle "emptyCells" "inherit"
2143+
static member inheritFromParent = Interop.mkStyle "empty-cells" "inherit"
21442144

21452145

21462146
[<Erase>]

0 commit comments

Comments
 (0)