forrtproject / forrtproject/forrtproject.github.io

Fix missing image alt text and intrinsic dimensions

未关闭
#869 0 条评论 0 个 reaction 已指派 1 人 已被 @LukasWallrich 认领 在 GitHub 查看
enhancement new website
主要语言
HTML
星标
42
派生
33
平均合并
2 天 6 小时
30 天内合并 PR
19

描述

## Why this needs addressing

The live homepage contains 24 images; 3 news thumbnails have no `alt` attribute. Nearly all sampled images also lack intrinsic `width`/`height` attributes. This is a confirmed accessibility gap and can contribute to layout shifts while images load.

## Requested change

- Give meaningful content images concise, context-appropriate alt text.
- Use `alt=""` only for genuinely decorative images.
- Add intrinsic dimensions or an equivalent aspect-ratio reservation for stable images, especially above the fold and repeated card components.
- Audit shared image partials as well as homepage content so the fix is template-level.

## Acceptance criteria

- No indexable/content image is missing an alt decision (meaningful alt or deliberate empty alt).
- Representative pages reserve image space before loading and show no avoidable layout shift.
- Existing responsive sizing and lazy loading continue to work.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。