diff --git a/src/components/date-input/_macro-options.md b/src/components/date-input/_macro-options.md index 07dab1d7a8..d24abd6e21 100644 --- a/src/components/date-input/_macro-options.md +++ b/src/components/date-input/_macro-options.md @@ -9,6 +9,7 @@ | year | DateField | false | Config for the year field. If this isn't provided then a year field will not render | | mutuallyExclusive | `MutuallyExclusive` [_(ref)_](/components/mutually-exclusive) | false | Configuration object if this is a mutually exclusive list | | legendClasses | string | false | Classes to apply to the legend | +| questionMode | boolean | false | Whether to change the visual layout of the input to a survey question | ## DateField diff --git a/src/components/date-input/_template.njk b/src/components/date-input/_template.njk index 94572fddb3..99e9daca5c 100644 --- a/src/components/date-input/_template.njk +++ b/src/components/date-input/_template.njk @@ -6,11 +6,20 @@ {% set exclusiveClass = " js-exclusive-group" %} {% endif %} +{% if params.questionMode %} + {% set legend = "