dwp / design-system

One place for service teams to find and share the styles, components and patterns for designing DWP services.
MIT License
15 stars 3 forks source link

Improvements: Update Design system Nunjucks macro options #564

Closed htmlandbacon closed 1 month ago

htmlandbacon commented 6 months ago

What

We need to update our nunjucks macro options to show sub components and cross component docs (i.e header)

Why

Currently we only show top level, information on the macro, this means the only way to work out what is going on is to look at the code, or examples.

When doing pref testing we worked out this was making multiple redundant IO calls

Example:

https://design-system.dwp.gov.uk/components/timeline

We require an array of events. - what does events look like? Is that all the options in the example?

Done when

Outcomes

Easier to see how to use a component without looking at the code.

Anything else

Related tickets