-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Labels
status: needs requirementsThis issue is NOT ready for development - it needs further scope clarification or questions answeredThis issue is NOT ready for development - it needs further scope clarification or questions answeredtype: featureNew feature or requestNew feature or request
Description
Does your feature request relate to a specific USWDS component?
All form components
What USWDS Version is this feature present in?
3.5.0 via uswds/uswds-site#1834
Is your feature request related to a problem? Please describe.
New guidance from USWDS on showing required fields: https://designsystem.digital.gov/templates/form-templates/#identifying-required-fields-2
Describe the solution you'd like
- Create an asterisk component that uses USWDS'
<abbr>
-based element - Import the component into the Label component and give it a boolean prop to toggle its inclusion
Describe alternatives you've considered
- Simply copy-paste your own required asterisk code into every Label (still possible)
- Create just the component and manually add the component to the Label's instance (also still possible)
Additional context
When using this, it's still important to put a message at the top of a form that explains what this asterisk is (e.g. "Required fields are marked with an asterisk (*)") and to use the standard required
prop
Metadata
Metadata
Assignees
Labels
status: needs requirementsThis issue is NOT ready for development - it needs further scope clarification or questions answeredThis issue is NOT ready for development - it needs further scope clarification or questions answeredtype: featureNew feature or requestNew feature or request