Skip to content

Commit 865b6f7

Browse files
committed
v1.0.2 Fix SVG namespace
1 parent 83d90a6 commit 865b6f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sketch_lustre/gleam.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "sketch_lustre"
2-
version = "1.0.1"
2+
version = "1.0.2"
33

44
description = "A Sketch runtime package, made to work with Lustre!"
55
internal_modules = ["sketch/internals", "sketch/internals/*"]

sketch_lustre/src/sketch/lustre/element/html.gleam

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import sketch/lustre/element.{element, element_}
1+
import sketch/lustre/element.{element, element_, namespaced, namespaced_}
22

33
//
44

@@ -767,11 +767,11 @@ pub fn sup_(attributes, children) {
767767
}
768768

769769
pub fn svg(class, attributes, children) {
770-
element("svg", class, attributes, children)
770+
namespaced("http://www.w3.org/2000/svg", "svg", class, attributes, children)
771771
}
772772

773773
pub fn svg_(attributes, children) {
774-
element_("svg", attributes, children)
774+
namespaced_("http://www.w3.org/2000/svg", "svg", attributes, children)
775775
}
776776

777777
pub fn table(class, attributes, children) {

0 commit comments

Comments
 (0)