treat hyphen as underscore in keys of styles

This commit is contained in:
Khaleel Al-Adhami 2025-02-12 11:52:08 -08:00
parent dd5b817f0f
commit 2862e6d407

View File

@ -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,))