Skip to content
This repository was archived by the owner on Oct 25, 2021. It is now read-only.

Commit ffb1b4a

Browse files
Merge pull request #8 from hmcts/Paragraph-Class
Add govuk-body class to paragraphs
2 parents 0779add + 546ad29 commit ffb1b4a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

assets/javascript/hmcts-webchat.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ function webchat_init(customParams) {
142142
let additionalTextArray;
143143

144144
chatLink.innerHTML = '';
145+
paragraph.classList.add('govuk-body');
145146

146147
if (chatImgBtn === params.btnNoAgents) {
147148
additionalTextArray = parseText(params.textNoAgentsAvailable);
@@ -151,6 +152,7 @@ function webchat_init(customParams) {
151152
additionalTextArray = parseText(params.textChatClosed);
152153
} else {
153154
const chatLinkParagraph = document.createElement('p');
155+
chatLinkParagraph.classList.add('govuk-body');
154156
chatLink.innerText = params.textChatWithAnAgent;
155157
chatLink.parentNode.insertBefore(chatLinkParagraph, chatLink);
156158
chatLinkParagraph.appendChild(chatLink);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hmcts/ctsc-web-chat",
3-
"version": "0.3.10",
3+
"version": "0.3.11",
44
"description": "HMCTS CTSC Web Chat",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)