aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbgw <29340584+bgwdotdev@users.noreply.github.com>2024-04-25 01:25:18 +0100
committerGitHub <noreply@github.com>2024-04-25 01:25:18 +0100
commitaeb89283c88dc650d8d055f553f3dfd166268d00 (patch)
tree9ab3e428eda40f6a3ee6639a6fe9b7a062edc624 /src
parent1a546a95b5f9c4b62fb831fe2424e4271bb675c0 (diff)
downloadlustre-aeb89283c88dc650d8d055f553f3dfd166268d00.tar.gz
lustre-aeb89283c88dc650d8d055f553f3dfd166268d00.zip
🔀 Correctly allow text content inside an SVG text element. (#112)
Diffstat (limited to 'src')
-rw-r--r--src/lustre/element/svg.gleam4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lustre/element/svg.gleam b/src/lustre/element/svg.gleam
index 9f741b5..74aa73e 100644
--- a/src/lustre/element/svg.gleam
+++ b/src/lustre/element/svg.gleam
@@ -340,8 +340,8 @@ pub fn path(attrs: List(Attribute(msg))) -> Element(msg) {
}
///
-pub fn text(attrs: List(Attribute(msg))) -> Element(msg) {
- namespaced(namespace, "text", attrs, [])
+pub fn text(attrs: List(Attribute(msg)), content: String) -> Element(msg) {
+ namespaced(namespace, "text", attrs, [element.text(content)])
}
///