[CORL-550] More stable css classes (#2515)

* feat: more stable css classes

* chore: renamee ValidationMessageHelper to FormValidationMessage

* chore: Rename FormValidationMessage to FieldValidationMessage

* feat: more css classes, icons use <i> tag

* feat: stable classnames for gdpr features

* feat: more css stable classnames
This commit is contained in:
Vinh
2019-09-04 12:34:42 -04:00
committed by Kim Gardner
parent fcf3640adc
commit aa32fcaea6
157 changed files with 2965 additions and 1531 deletions
@@ -0,0 +1,16 @@
import cn from "classnames";
import { withProps } from "recompose";
import { ValidationMessage } from "coral-framework/lib/form";
import CLASSES from "coral-stream/classes";
import { PropTypesOf } from "coral-ui/types";
/**
* Like <ValidationMessage /> from the form library but with a stable css classname.
*/
export default withProps<
Partial<PropTypesOf<typeof ValidationMessage>>,
PropTypesOf<typeof ValidationMessage>
>(({ className }) => ({
className: cn(className, CLASSES.validationMessage),
}))(ValidationMessage);