Undefined style props not using default style
fix(button): undefined style props not using default style
Undefined style props not using default stylefixundefined style props using default button
Committed by m0nae
commit message
fix(button): undefined style props not using default style
If a style prop was explicitly set to undefined, the prop would still
be forwarded to the Chakra base html element, overriding any theme styles.
Props that are undefined are now filtered out and not forwarded to the base
html element.
closes #4255Editor assessment
The subject names the defect precisely: explicitly undefined style props were not falling back to defaults. The body then explains the full mechanism: an explicitly set undefined was still forwarded to the base element, overriding theme styles, and undefined props are now filtered out before forwarding. That is a complete root-cause explanation — symptom, cause, and remedy — in four lines. The button scope is a proper component noun, the fix type matches, and the closes #4255 footer is well formed. An exemplary teaching commit.