This has come up in some individual examples like:
- alphagov/govuk-frontend#941
- when Dave was trying to build the GOV.UK Pay example
- alphagov/govuk-frontend#570
- alphagov/govuk-frontend#718
- alphagov/govuk-frontend#514
- alphagov/govuk-frontend#1281
Do a future thinking SPIKE to see when it'd look like if we encouraged nesting as a default for our macros, what would that look like.
This would give us a better understanding of how we should structure our components in general.
While some recommendations might require breaking changes, I think doing holistic thinking and forwards thinking is good for this kind of issue.
The end of this spike might be:
- simple individual improvements for specific components or
- a proposal to simplify large component apis