From ea8124f1a105a40b0a9a507a6a894d860352e2dc Mon Sep 17 00:00:00 2001 From: Max Bladen-Clark Date: Fri, 11 Aug 2023 10:37:17 +0100 Subject: [PATCH] fix custom class support on map buttons --- server/src/js/components/map/button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/js/components/map/button.js b/server/src/js/components/map/button.js index d519dff62..ba277376a 100644 --- a/server/src/js/components/map/button.js +++ b/server/src/js/components/map/button.js @@ -11,7 +11,7 @@ export function createMapButton (buttonContainer, uri, options) { } button.id = mapId + '-btn' button.innerHTML = `${options.btnText || 'View map'}(Visual only)` - button.className = options.btnClass || (options.btnType === 'link' ? 'defra-link-icon-s' : 'defra-button-secondary') + button.className = options.btnClasses || (options.btnType === 'link' ? 'defra-link-icon-s' : 'defra-button-secondary') if (options.data && options.data.button) { button.setAttribute('data-journey-click', options.data.button)