Skip to content

Commit

Permalink
macro options for dateInput values, fixes #2028
Browse files Browse the repository at this point in the history
  • Loading branch information
anandamaryon1 committed Sep 10, 2024
1 parent 444645f commit ca9be28
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@

:new: **New features**
- Add entries on Down's syndrome, fit note and period products to the A to Z of NHS health writing
- Add guidance for heading classes

:wrench: **Maintenance**
- Add guidance for heading classes
- Update page template examples to make the default example size `l` and inside the grid system
- Make our guidance on age clearer
- Update entries on fetus, microgram and NHS in the A to Z
- Update links guidance to recommend avoiding "see"
- Update content section on capitalisation to mention geographical names
- Update service manual team page and email address
- Update Nunjucks macro options for date input component, adding values for day, month and year

## 6.5.0 - 31 July 2024

Expand Down
24 changes: 24 additions & 0 deletions app/views/design-system/components/date-input/macro-options.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,30 @@
"type": "object",
"required": false,
"description": "HTML attributes (for example data attributes) to add to the date-input container."
},
{
"name": "values",
"type": "object",
"required": false,
"description": "An optional object use to specify value attributes for the date parts without setting rows."
},
{
"name": "values.day",
"type": "string",
"required": false,
"description": "Value attribute for the day input."
},
{
"name": "values.month",
"type": "string",
"required": false,
"description": "Value attribute for the month input."
},
{
"name": "values.year",
"type": "string",
"required": false,
"description": "Value attribute for the year input."
}
]
}

0 comments on commit ca9be28

Please sign in to comment.