You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently inconsistently place className for our components. In v11, we will have each component place the className prop on the outermost node. This issue is for updating components in a non-breaking way using the useFeatureFlag hook to place the className prop on the outermost node.
functionDemo(){constenabled=useFeatureFlag('enable-v11-release');// Figure out common pattern for placing `className` on outermost node}
This issue is for filling out the list below of components that currently place className on the outermost node and for addressing this using the pattern described above.
A list of components that place className on the outermost node:
TODO
The text was updated successfully, but these errors were encountered:
TextArea (also wrapped in bx--form-item, but it is wrapping adjacent elements)
TextInput (also wrapped in bx--form-item, but it is wrapping adjacent elements)
This seems to be all components that do not allow a user to add a className to the top-level element. In the case of DatePicker, NumberInput, RadioButtonGroup, and Select, it may be best to add the className to bx--form-item, and move the others noted with bx-form-item to also add classes to this outermost wrapper for consistency.
We currently inconsistently place
className
for our components. In v11, we will have each component place theclassName
prop on the outermost node. This issue is for updating components in a non-breaking way using theuseFeatureFlag
hook to place theclassName
prop on the outermost node.This issue is for filling out the list below of components that currently place
className
on the outermost node and for addressing this using the pattern described above.A list of components that place
className
on the outermost node:The text was updated successfully, but these errors were encountered: