From fd1c7231a34bb1ca3cc2530121603f68b913cd0b Mon Sep 17 00:00:00 2001 From: beeps Date: Mon, 15 Jan 2024 16:09:21 +0000 Subject: [PATCH] Deprecate 'element' param on button --- CHANGELOG.md | 10 ++++++++++ .../src/govuk/components/button/button.yaml | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dba540a2bb..6561183f8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -98,6 +98,16 @@ This is an experimental change, based on our hypothesis that `govuk-font-size` a This change was introduced in [pull request #4291: Rename `govuk-typography-responsive` to `govuk-font-size`](https://github.com/alphagov/govuk-frontend/pull/4291) +### Deprecated features + +#### Stop using the `element` parameter on buttons + +We have deprecated the `element` Nunjucks parameter and will remove it in the next major release. + +In the future, the component will automatically use the use the `` element if the `href` parameter is set, or the `