mirror of
https://github.com/lipis/flag-icons.git
synced 2024-11-22 11:27:29 +01:00
Add alt to images
This commit is contained in:
parent
c37183947c
commit
53ca3704a4
@ -36,6 +36,7 @@ const addFlag = (country, rowDiv) => {
|
||||
const flagImg = document.createElement('img');
|
||||
flagImg.classList.add('flag-img');
|
||||
flagImg.src = country.flag_4x3;
|
||||
flagImg.alt = `Flag of ${country.name}`;
|
||||
|
||||
colDiv.appendChild(flagDiv);
|
||||
flagDiv.appendChild(countryDiv);
|
||||
|
Loading…
Reference in New Issue
Block a user