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

Commit

Permalink
Add GDS govuk-link class to webchat link
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaDelBuono committed Aug 2, 2019
1 parent cdcdeaa commit cc4881f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion assets/javascript/hmcts-webchat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -131,6 +131,7 @@ function webchat_init(customParams) {

if (chatLink && !window.__8x8Chat.chatLinkFocusable) {
chatLink.setAttribute('tabindex', '-1');
chatLink.classList.add('govuk-link');
}

if (chatImg) {
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.2",
"version": "0.3.3",
"description": "HMCTS CTSC Web Chat",
"repository": {
"type": "git",
Expand Down

0 comments on commit cc4881f

Please sign in to comment.