접근성 체크 박스 (적절한 링크 텍스트)
Deploy Frontend / deploy (push) Successful in 7m28s

This commit is contained in:
2026-10-11 17:09:37 +09:00
parent a8eb8f9ab1
commit 0b502cbc99
22 changed files with 114 additions and 15 deletions
@@ -28,12 +28,6 @@ const BannerImage = ({ atflCd, lnkgUrlAddr, bannerName }: BannerImageProps) => {
enabled: !!atflCd,
});
const handleClick = () => {
if (lnkgUrlAddr) {
window.open(lnkgUrlAddr, "_blank");
}
};
if (isLoading) {
return (
<div className="relative mx-auto flex h-24 items-center justify-center bg-accent">
@@ -50,17 +44,34 @@ const BannerImage = ({ atflCd, lnkgUrlAddr, bannerName }: BannerImageProps) => {
);
}
const image = (
<img
src={imageUrl}
className="h-full w-full object-contain"
alt={bannerName || "배너 이미지"}
/>
);
// 링크가 없는 배너는 이동할 곳이 없으므로 초점 대상에서 제외
if (!lnkgUrlAddr) {
return (
<div className="relative mx-auto flex h-24 items-center justify-center">
{image}
</div>
);
}
// a 요소로 구현해 Tab 초점 이동·Enter 실행이 가능하도록 함 (캐러셀 영역이 overflow-hidden 이라 초점 링은 안쪽에 표시)
return (
<div
className="relative mx-auto flex h-24 cursor-pointer items-center justify-center transition-opacity hover:opacity-80"
onClick={handleClick}
<a
href={lnkgUrlAddr}
target="_blank"
rel="noopener noreferrer"
title={`${bannerName || "배너"} (새 창 열림)`}
className="relative mx-auto flex h-24 items-center justify-center rounded-sm transition-opacity hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring"
>
<img
src={imageUrl}
className="h-full w-full object-contain"
alt={bannerName || "배너 이미지"}
/>
</div>
{image}
</a>
);
};
@@ -117,6 +117,8 @@ export function NoticePopover() {
)}
>
<Checkbox
aria-label={`${item.notiTtl} 선택`}
title={`${item.notiTtl} 선택`}
checked={selectedNoticeIds.includes(item.notiId)}
onCheckedChange={() => handleSelectNotice(item.notiId)}
/>