diff --git a/CHANGELOG.md b/CHANGELOG.md index c603f2cd..6337ebd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] + - Change aria-label in shelf to be the same as product name (visible label) + ## [2.91.0] - 2025-11-05 ### Added diff --git a/react/ProductSummaryCustom.tsx b/react/ProductSummaryCustom.tsx index f053d808..12d0e419 100644 --- a/react/ProductSummaryCustom.tsx +++ b/react/ProductSummaryCustom.tsx @@ -163,7 +163,7 @@ function ProductSummaryCustom({ to: href, onClick: autocompleteSummary ? actionOnClick : undefined, onClickCapture: autocompleteSummary ? undefined : actionOnClick, - 'aria-label': `View product details for ${ + 'aria-label': `${ product?.productName || 'product' }`, } @@ -177,7 +177,7 @@ function ProductSummaryCustom({ query, onClick: autocompleteSummary ? actionOnClick : undefined, onClickCapture: autocompleteSummary ? undefined : actionOnClick, - 'aria-label': `View product details for ${ + 'aria-label': `${ product?.productName || 'product' }`, }