ic-ui-kit icon indicating copy to clipboard operation
ic-ui-kit copied to clipboard

Internal issue 3092 - Option to add the word 'required' instead of using an asterisks

Open ticket-sync[bot] opened this issue 4 months ago • 3 comments

An accessibility expert (see internal ticket for more details) mentioned it is considered best practice for government forms to have (required) instead of *? e.g.:

Your message (required) instead of: Your message*

Would it be possible to add the option to switch the asterisks to the word? The word “required” would need to be edited in order for us to translate it.

ticket-sync[bot] avatar Aug 22 '25 11:08 ticket-sync[bot]

About the "needing to be edited", this would be like the maxCharactersMessage prop on the text field. I.e. the default text would be "(required)", but a prop called something like requiredMessage could be added which allows customers to change the actual text to whatever they want

GCHQ-Developer-847 avatar Aug 22 '25 13:08 GCHQ-Developer-847

This would need to be changed for all input fields.

One concern I have about this ticket is affecting user familiarity, as some apps could have asterisks, some could have "(required)". Maybe we add a prop for now, and then in v4 (As it would probably be considered a breaking change), make it so all fields have "(required)"? (If we decide we should make the change)

GCHQ-Developer-847 avatar Aug 22 '25 13:08 GCHQ-Developer-847

General UX note, it all depends on context;

If a form is predominantly mandatory fields, place (Optional) against those that are not mandatory. If a form is predominantly optional fields, place (required) against those that are not optional.

mi6-577 avatar Oct 15 '25 07:10 mi6-577