From 2862e6d407a11df60ef266e1b2c27a540e2bbae6 Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Wed, 12 Feb 2025 11:52:08 -0800 Subject: [PATCH] treat hyphen as underscore in keys of styles --- reflex/style.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflex/style.py b/reflex/style.py index 192835ca3..d4aa54177 100644 --- a/reflex/style.py +++ b/reflex/style.py @@ -237,7 +237,7 @@ def format_style_key(key: str) -> Tuple[str, ...]: Returns: Tuple of css style names corresponding to the key provided. """ - key = format.to_camel_case(key, allow_hyphens=True) + key = format.to_camel_case(key) return STYLE_PROP_SHORTHAND_MAPPING.get(key, (key,))