From ee5b2829574eb06336fb69ec7d6e974d7815c3a7 Mon Sep 17 00:00:00 2001 From: Joshua T Flowers Date: Thu, 13 Dec 2018 09:59:16 +0800 Subject: [PATCH] Fix screen reader label IDs (https://github.com/woocommerce/woocommerce-admin/pull/1071) --- .../woocommerce-admin/packages/components/src/table/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/packages/components/src/table/table.js b/plugins/woocommerce-admin/packages/components/src/table/table.js index f5c2602bac7..377960ff523 100644 --- a/plugins/woocommerce-admin/packages/components/src/table/table.js +++ b/plugins/woocommerce-admin/packages/components/src/table/table.js @@ -140,7 +140,7 @@ class Table extends Component { { headers.map( ( header, i ) => { const { cellClassName, isLeftAligned, isSortable, isNumeric, key, label, screenReaderLabel } = header; - const labelId = `header-${ instanceId } -${ i }`; + const labelId = `header-${ instanceId }-${ i }`; const thProps = { className: classnames( 'woocommerce-table__header', cellClassName, { 'is-left-aligned': isLeftAligned,