fix: viewBox translation by not accidentally stringifying literals (#3527)

* fix: don't double stringify lits

* also split off namespaces in translation
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-01-08 16:12:48 -08:00
1 parent a3812d66da
commit 343c48f5ad
4 files changed
+109 -3

No files matched your search

+2 -2
View File
@@ -63,7 +63,7 @@ macro_rules! html_to_rsx_attribute_mapping {
$(#[$attr:meta])*
$name:ident: $lit:literal;
) => {
if $matching == stringify!($lit) {
if $matching == $lit {
return Some(stringify!($name));
}
};
@@ -72,7 +72,7 @@ macro_rules! html_to_rsx_attribute_mapping {
$(#[$attr:meta])*
$name:ident: $lit:literal in $ns:literal;
) => {
if $matching == stringify!($lit) {
if $matching == $lit {
return Some(stringify!($name));
}
};