From 9945d4074928b22ca78e6e96a46c337c529a8130 Mon Sep 17 00:00:00 2001 From: Gemma Leigh Date: Thu, 13 Jul 2017 15:22:59 +0100 Subject: [PATCH] Support deprecated check-your-answers table styles To ensure we support existing prototypes using the old check your answers pattern - where using a table was recommended, add the styles back in - but mark these as deprecated. As the new styles are namespaced using .govuk- these are opt-in, so we can release without making a breaking change. In future, we can remove .check-your-answers, the next time we make a breaking change to the prototype kit. --- app/assets/sass/patterns/_check-your-answers.scss | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/app/assets/sass/patterns/_check-your-answers.scss b/app/assets/sass/patterns/_check-your-answers.scss index d814080af2..5715c6dc6e 100644 --- a/app/assets/sass/patterns/_check-your-answers.scss +++ b/app/assets/sass/patterns/_check-your-answers.scss @@ -1,4 +1,4 @@ - +// Recommended - Use these styles for the check your answers pattern .govuk-check-your-answers { @include media(desktop) { @@ -80,3 +80,16 @@ } } + +// Deprecated - these styles will be removed in a later release +.check-your-answers { + td { + @include core-19; + vertical-align: top; + } + .change-answer { + text-align: right; + font-weight: bold; + padding-right: 0; + } +}