fix(quick-260921-jt4): vier <img onError>-Avatarbilder tragen aria-hidden (D-03)
header.tsx, account-settings-form.tsx, favorites-widget.tsx (zweimal): alle vier tragen bereits alt="", sind also schon aus dem Zugaenglichkeitsbaum genommen; aria-hidden sagt dasselbe nur ausdruecklich. Ehrliche Einordnung: richtige Auszeichnung, verbessert fuer keinen Menschen etwas — der Befund verschwindet, weil die Regel ein verborgenes Element nicht mehr betrachtet. onError ist ein Ladefehler, keine Bedienung: hier gab es nie einen Tastaturweg zu schaffen. Keine Unterdrueckung, kein biome-ignore. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TPPB4ApQxzSU1rwV2Ffj9J
This commit is contained in:
@@ -472,6 +472,7 @@ function FavoriteIcon({
|
|||||||
data-testid={`icon-proxy-${fav.id}`}
|
data-testid={`icon-proxy-${fav.id}`}
|
||||||
src={proxySrc}
|
src={proxySrc}
|
||||||
alt=""
|
alt=""
|
||||||
|
aria-hidden="true"
|
||||||
width={20}
|
width={20}
|
||||||
height={20}
|
height={20}
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
@@ -484,6 +485,7 @@ function FavoriteIcon({
|
|||||||
data-testid={`icon-direct-${fav.id}`}
|
data-testid={`icon-direct-${fav.id}`}
|
||||||
src={directSrc}
|
src={directSrc}
|
||||||
alt=""
|
alt=""
|
||||||
|
aria-hidden="true"
|
||||||
width={20}
|
width={20}
|
||||||
height={20}
|
height={20}
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
|
|||||||
@@ -156,6 +156,7 @@ export function Header() {
|
|||||||
<img
|
<img
|
||||||
src={`/api-proxy/users/me/avatar?v=${avatarVersion}`}
|
src={`/api-proxy/users/me/avatar?v=${avatarVersion}`}
|
||||||
alt=""
|
alt=""
|
||||||
|
aria-hidden="true"
|
||||||
className="h-8 w-8 rounded-full object-cover"
|
className="h-8 w-8 rounded-full object-cover"
|
||||||
onError={() => setAvatarError(true)}
|
onError={() => setAvatarError(true)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -162,6 +162,7 @@ export function AccountSettingsForm() {
|
|||||||
key={avatarKey}
|
key={avatarKey}
|
||||||
src={`/api-proxy/users/me/avatar?t=${avatarKey}`}
|
src={`/api-proxy/users/me/avatar?t=${avatarKey}`}
|
||||||
alt=""
|
alt=""
|
||||||
|
aria-hidden="true"
|
||||||
className="h-16 w-16 rounded-full object-cover"
|
className="h-16 w-16 rounded-full object-cover"
|
||||||
onError={() => setHasAvatar(false)}
|
onError={() => setHasAvatar(false)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user