Skip to content

Commit 6b65d80

Browse files
Adamparishspoksean-hill
authored andcommitted
fix: update iframe title and aria-label
1 parent ce6e4c1 commit 6b65d80

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ let atomicSDK = {
4141
let iframeElement = document.createElement('iframe')
4242
iframeElement.setAttribute('allow', 'web-share')
4343
const productType = config.operation || config.product || 'Atomic'
44-
iframeElement.setAttribute('title', `Atomic ${productType} Interface`)
45-
iframeElement.setAttribute('aria-label', `Atomic ${productType} Interface`)
44+
iframeElement.setAttribute('title', `${productType} Interface`)
45+
iframeElement.setAttribute('aria-label', `${productType} Interface`)
4646

4747
iframeElement.src = `${origin}/initialize/${btoa(
4848
JSON.stringify({

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/__snapshots__/index.spec.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ exports[`JavaScript SDK should initialize the sdk 1`] = `
88
],
99
[
1010
"title",
11-
"Atomic Atomic Interface",
11+
"Atomic Interface",
1212
],
1313
[
1414
"aria-label",
15-
"Atomic Atomic Interface",
15+
"Atomic Interface",
1616
],
1717
]
1818
`;

0 commit comments

Comments
 (0)