diff --git a/libs/features/personalization/preview.js b/libs/features/personalization/preview.js index d13d5c6aec..04695414d3 100644 --- a/libs/features/personalization/preview.js +++ b/libs/features/personalization/preview.js @@ -254,17 +254,20 @@ function createPreviewPill(manifests) { + +
+ Preview
`; + const darkDiv = document.createElement('div'); + const button = document.createElement('a'); + darkDiv.className = 'dark'; + button.className = 'con-button outline button-l'; + button.title = 'Preview above choices'; + button.text = 'Preview'; + button.href = simulateHref.href; + darkDiv.append(button); - const darkDiv = document.createElement('div') - const button = document.createElement('a') - darkDiv.className = 'dark' - button.className = 'con-button outline button-l' - button.title = 'Preview above choices' - button.text = 'Preview' - button.href = simulateHref.href - darkDiv.append(button) - div.append(darkDiv) + div.append(darkDiv); overlay.append(div); addPillEventListeners(div);