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

Commit

Permalink
Merge pull request #8 from hmcts/Paragraph-Class
Browse files Browse the repository at this point in the history
Add govuk-body class to paragraphs
  • Loading branch information
LucaDelBuonoHMCTS authored May 7, 2020
2 parents 0779add + 546ad29 commit ffb1b4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions assets/javascript/hmcts-webchat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit ffb1b4a

Please sign in to comment.