Hello,
I am creating custom DX component which displays date range component multiple times one below another.
In design.pega.com we can see that the control OOTB displays ‘MM/DD/YYYY’ on the bottom. Normally for all other controls i could modify it using ‘info’ attribute.
Is there possibility to get rid of this text?
Hi @Pawel Sobolewski.
I assume you are using DateRangeInput from cosmos-react-core package as the presentational component. Currently it is not possible to remove this text. Saying “i could modify it using ‘info’ attribute”, I guess you just pass empty string as a workaround to get rid of this text in DateInput. Please be aware that this may result in a failure of WCAG 2.1 Success Criterion 3.3.2. It is recommended to leave the text as is.
I hope this clarifies why the text is presented by default for date and time related inputs.
