نعم، شكرًا لتبليغك عن الأمر — يجب إضافة سمة alt فارغة هنا، لأن صورة الشارة هي عنصر زخرفي، وإعادة ذكر اسم الشارة سيكون تكرارًا غير ضروري لأنه متوفر بالفعل كنص.
سيتم تنفيذ ذلك هنا:
main ← a11y-custom-badge-alt
opened 03:38PM - 05 May 26 UTC
When adding an image to custom badges like the one below, we don't add an alt ta… g to the image. We should add an empty alt tag, indicating that the image is only decorative. This is reasonable because the badge name is in accessible text next to the image, so the description of the image isn't necessary.
<img width="400" alt="image" src="https://github.com/user-attachments/assets/7920ddea-4c89-481c-8064-fa9d928e7991" />
This icon-or-image helper is used elsewhere, but they're all cases where this behavior is desired.
4 إعجابات