treat hyphen as underscore in keys of styles
This commit is contained in:
parent
dd5b817f0f
commit
2862e6d407
@ -237,7 +237,7 @@ def format_style_key(key: str) -> Tuple[str, ...]:
|
|||||||
Returns:
|
Returns:
|
||||||
Tuple of css style names corresponding to the key provided.
|
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,))
|
return STYLE_PROP_SHORTHAND_MAPPING.get(key, (key,))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user