Skip to content

Commit

Permalink
BREAKING CHANGE(form-validations): Rename validator_message to `val…
Browse files Browse the repository at this point in the history
…idation_text` #DS-838

 ## Migration Guide

Instead of the `validator_message` value of the `data-spirit-element` attribute, use
`validation_text`.

- `<div data-spirit-element="validator_message">…</div>` →
  `<div data-spirit-element="validation_text">…</div>`

Please refer back to these instructions or reach out to our team
if you encounter any issues during migration.
  • Loading branch information
adamkudrna authored and literat committed Jul 21, 2023
1 parent 1aeb91b commit b87f302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/form-validations/src/FormValidations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const defaultConfig: Config = {
validationTextParentSelector: `[${DATA_ATTR_PREFIX}-validate]`,
validationTextTag: 'div',
validationTextClass: '',
dataElementMessage: 'validator_message',
dataElementMessage: 'validation_text',
};

type HTMLAttribute = {
Expand Down

0 comments on commit b87f302

Please sign in to comment.