From cc4881fad533e51a35696cb139bac3fcbbe4d3a6 Mon Sep 17 00:00:00 2001 From: Luca Del Buono Date: Fri, 2 Aug 2019 16:10:51 +0100 Subject: [PATCH] Add GDS govuk-link class to webchat link --- assets/javascript/hmcts-webchat.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/javascript/hmcts-webchat.js b/assets/javascript/hmcts-webchat.js index 61076fc..cd16dc5 100644 --- a/assets/javascript/hmcts-webchat.js +++ b/assets/javascript/hmcts-webchat.js @@ -44,7 +44,7 @@ function parseText(text) { } function webchat_init(customParams) { - const version = '0.3.2'; + const version = '0.3.3'; const requiredParams = [ 'uuid', 'tenant', @@ -131,6 +131,7 @@ function webchat_init(customParams) { if (chatLink && !window.__8x8Chat.chatLinkFocusable) { chatLink.setAttribute('tabindex', '-1'); + chatLink.classList.add('govuk-link'); } if (chatImg) { diff --git a/package.json b/package.json index 324fca7..7258378 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hmcts/ctsc-web-chat", - "version": "0.3.2", + "version": "0.3.3", "description": "HMCTS CTSC Web Chat", "repository": { "type": "git",