From 546ad295ee21c85fb6958582407467e836a94fb3 Mon Sep 17 00:00:00 2001 From: Luca Del Buono Date: Thu, 7 May 2020 13:00:19 +0100 Subject: [PATCH] Add govuk-body class to paragraphs --- assets/javascript/hmcts-webchat.js | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/javascript/hmcts-webchat.js b/assets/javascript/hmcts-webchat.js index 2284fbd..d354d27 100644 --- a/assets/javascript/hmcts-webchat.js +++ b/assets/javascript/hmcts-webchat.js @@ -142,6 +142,7 @@ function webchat_init(customParams) { let additionalTextArray; chatLink.innerHTML = ''; + paragraph.classList.add('govuk-body'); if (chatImgBtn === params.btnNoAgents) { additionalTextArray = parseText(params.textNoAgentsAvailable); @@ -151,6 +152,7 @@ function webchat_init(customParams) { additionalTextArray = parseText(params.textChatClosed); } else { const chatLinkParagraph = document.createElement('p'); + chatLinkParagraph.classList.add('govuk-body'); chatLink.innerText = params.textChatWithAnAgent; chatLink.parentNode.insertBefore(chatLinkParagraph, chatLink); chatLinkParagraph.appendChild(chatLink); diff --git a/package.json b/package.json index 2d9c87b..c796347 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hmcts/ctsc-web-chat", - "version": "0.3.10", + "version": "0.3.11", "description": "HMCTS CTSC Web Chat", "repository": { "type": "git",