Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pattern for required fields to use tags #2919

Open
Edavda opened this issue Jan 17, 2025 · 0 comments
Open

Update pattern for required fields to use tags #2919

Edavda opened this issue Jan 17, 2025 · 0 comments
Assignees
Labels
status/triage ux Needs some love from a UX resource

Comments

@Edavda
Copy link

Edavda commented Jan 17, 2025

Our current pattern for displaying required fields is not recommended by the Design System.
They have documented a preferred pattern here that uses a tag component to display what fields are required and which are not.

This is pattern we should implement in our forms in order to keep up to date with both best practices and to ensure a consistent user experience across our products.

Key takeaways

Single question per page

The description in the question should let the user know if the field is required or not. No need for additional marking.

Multiple questions - all are required

In the case of having multiple required fields on a page, we should inform the user by displaying a tag or marking at the top of the page. We should recommend avoiding mixing required and not required fields on the same page.

Multiple questions - both required and not required

In the case of having multiple questions per page, each question should be marked if it is required or not. The design system suggests using a tag-component for example.

@Edavda Edavda converted this from a draft issue Jan 17, 2025
@Edavda Edavda added the ux Needs some love from a UX resource label Jan 17, 2025
@Edavda Edavda self-assigned this Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/triage ux Needs some love from a UX resource
Projects
Status: Todo 📈
Status: No status
Development

No branches or pull requests

1 participant