Skip to content

Commit 65c36c9

Browse files
author
Matej Lednicky
authored
feat(NOJIRA-123): Add aria-label to modal close button (#636)
Resolves #635
1 parent b37e66c commit 65c36c9

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

packages/embed/src/factories/create-popup/create-popup.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const buildCloseButton = (close: () => void) => {
5151
const closeButton = document.createElement('button')
5252
closeButton.className = 'tf-v1-close tf-v1-close-icon'
5353
closeButton.innerHTML = '×'
54+
closeButton.ariaLabel = 'Close'
5455
closeButton.onclick = invokeWithoutDefault(close)
5556
return closeButton
5657
}

packages/embed/src/factories/create-slider/create-slider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const buildCloseButton = (close: () => void) => {
4545
const closeButton = document.createElement('button')
4646
closeButton.className = 'tf-v1-close tf-v1-close-icon'
4747
closeButton.innerHTML = '×'
48+
closeButton.ariaLabel = 'Close'
4849
closeButton.onclick = invokeWithoutDefault(close)
4950
return closeButton
5051
}

packages/embed/src/factories/create-widget/create-widget.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const buildCloseButton = () => {
2525
const closeButton = document.createElement('button')
2626
closeButton.className = 'tf-v1-widget-close tf-v1-close-icon'
2727
closeButton.innerHTML = '×'
28+
closeButton.ariaLabel = 'Close'
2829
return closeButton
2930
}
3031

0 commit comments

Comments
 (0)