Skip to content

Commit 1caa2fa

Browse files
authored
Merge pull request #699 from njlr/patch-1
Update alignmentBaseline attributes in Svg.fs
2 parents b7b8b6e + 08b4486 commit 1caa2fa

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

src/Feliz/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818

1919
## 3.1.1 - 2025-12-15
2020

21+
### 🐛 Fixed
22+
23+
- Changes `alignment-baseline` to `alignmentBaseline` (by @njlr)
24+
2125
### ✨ Added
2226

2327
- Support for the [autocorrect attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/autocorrect) (by @kerams)

src/Feliz/Svg.fs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -965,46 +965,46 @@ module svg =
965965
type alignmentBaseline =
966966
/// Uses the dominant baseline choice of the parent. Matches the box’s
967967
/// corresponding baseline to that of its parent.
968-
static member inline alphabetic = SvgHelper.svgAttribute "alignment-baseline" "alphabetic"
968+
static member inline alphabetic = SvgHelper.svgAttribute "alignmentBaseline" "alphabetic"
969969
/// Uses the dominant baseline choice of the parent. Matches the box’s
970970
/// corresponding baseline to that of its parent.
971-
static member inline baseline = SvgHelper.svgAttribute "alignment-baseline" "baseline"
971+
static member inline baseline = SvgHelper.svgAttribute "alignmentBaseline" "baseline"
972972
/// Uses the dominant baseline choice of the parent. Matches the box’s
973973
/// corresponding baseline to that of its parent.
974-
static member inline bottom = SvgHelper.svgAttribute "alignment-baseline" "bottom"
974+
static member inline bottom = SvgHelper.svgAttribute "alignmentBaseline" "bottom"
975975
/// Specifies that the animation will add to the underlying value of
976976
/// the attribute and other lower priority animations.
977-
static member inline center = SvgHelper.svgAttribute "alignment-baseline" "center"
977+
static member inline center = SvgHelper.svgAttribute "alignmentBaseline" "center"
978978
/// Uses the dominant baseline choice of the parent. Matches the box’s
979979
/// corresponding baseline to that of its parent.
980-
static member inline central = SvgHelper.svgAttribute "alignment-baseline" "central"
980+
static member inline central = SvgHelper.svgAttribute "alignmentBaseline" "central"
981981
/// Specifies that the animation will add to the underlying value of
982982
/// the attribute and other lower priority animations.
983-
static member inline hanging = SvgHelper.svgAttribute "alignment-baseline" "hanging"
983+
static member inline hanging = SvgHelper.svgAttribute "alignmentBaseline" "hanging"
984984
/// Specifies that the animation will add to the underlying value of
985985
/// the attribute and other lower priority animations.
986-
static member inline ideographic = SvgHelper.svgAttribute "alignment-baseline" "ideographic"
986+
static member inline ideographic = SvgHelper.svgAttribute "alignmentBaseline" "ideographic"
987987
/// Uses the dominant baseline choice of the parent. Matches the box’s
988988
/// corresponding baseline to that of its parent.
989-
static member inline mathematical = SvgHelper.svgAttribute "alignment-baseline" "mathematical"
989+
static member inline mathematical = SvgHelper.svgAttribute "alignmentBaseline" "mathematical"
990990
/// Specifies that the animation will add to the underlying value of
991991
/// the attribute and other lower priority animations.
992-
static member inline middle = SvgHelper.svgAttribute "alignment-baseline" "middle"
992+
static member inline middle = SvgHelper.svgAttribute "alignmentBaseline" "middle"
993993
/// Uses the dominant baseline choice of the parent. Matches the box’s
994994
/// corresponding baseline to that of its parent.
995-
static member inline textAfterEdge = SvgHelper.svgAttribute "alignment-baseline" "text-after-edge"
995+
static member inline textAfterEdge = SvgHelper.svgAttribute "alignmentBaseline" "text-after-edge"
996996
/// Uses the dominant baseline choice of the parent. Matches the box’s
997997
/// corresponding baseline to that of its parent.
998-
static member inline textBeforeEdge = SvgHelper.svgAttribute "alignment-baseline" "text-before-edge"
998+
static member inline textBeforeEdge = SvgHelper.svgAttribute "alignmentBaseline" "text-before-edge"
999999
/// Specifies that the animation will add to the underlying value of
10001000
/// the attribute and other lower priority animations.
1001-
static member inline textBottom = SvgHelper.svgAttribute "alignment-baseline" "text-bottom"
1001+
static member inline textBottom = SvgHelper.svgAttribute "alignmentBaseline" "text-bottom"
10021002
/// Specifies that the animation will add to the underlying value of
10031003
/// the attribute and other lower priority animations.
1004-
static member inline textTop = SvgHelper.svgAttribute "alignment-baseline" "text-top"
1004+
static member inline textTop = SvgHelper.svgAttribute "alignmentBaseline" "text-top"
10051005
/// Specifies that the animation will add to the underlying value of
10061006
/// the attribute and other lower priority animations.
1007-
static member inline top = SvgHelper.svgAttribute "alignment-baseline" "top"
1007+
static member inline top = SvgHelper.svgAttribute "alignmentBaseline" "top"
10081008

10091009
/// Specifies the interpolation mode for the animation.
10101010
[<Erase>]

0 commit comments

Comments
 (0)