Set image alt-text of notification close-button
This commit is contained in:
parent
6fe904d48d
commit
beb6b26f15
|
@ -16,7 +16,7 @@
|
||||||
<div id="content"></div>
|
<div id="content"></div>
|
||||||
<div>
|
<div>
|
||||||
<button type="button" class="neutral" id="close-button">
|
<button type="button" class="neutral" id="close-button">
|
||||||
<img id="close" alt="X" />
|
<img id="close" alt="Close" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -26,6 +26,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||||
: chrome.runtime.getURL('images/icon38.png');
|
: chrome.runtime.getURL('images/icon38.png');
|
||||||
|
|
||||||
document.getElementById('close').src = chrome.runtime.getURL('images/close.png');
|
document.getElementById('close').src = chrome.runtime.getURL('images/close.png');
|
||||||
|
document.getElementById('close').alt = i18n.close;
|
||||||
|
|
||||||
var closeButton = document.getElementById('close-button'),
|
var closeButton = document.getElementById('close-button'),
|
||||||
body = document.querySelector('body'),
|
body = document.querySelector('body'),
|
||||||
|
|
Loading…
Reference in New Issue