v10.7.0
Minor Changes
-
e54da79: feat: add
useCssPropTypesconfig option to infer CSS custom property controls from CEM type instead of property name heuristicsWhen
setStorybookHelpersConfig({ useCssPropTypes: true })is set,getCssPropControlrelies only on the CSS type (<color>,<number>,<integer>) declared in the@csspropertyJSDoc tag to determine the Storybook control. The name-based heuristic (name.includes("color")/name.includes("colour")) is skipped, avoiding false positives for properties like--colour-distanceor--profile-icon-colour.