0
0
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:
Panayiotis Lipiridis 2021-10-23 21:36:36 +03:00
parent c37183947c
commit 53ca3704a4

View File

@ -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);