Fix screen reader label IDs (https://github.com/woocommerce/woocommerce-admin/pull/1071)
This commit is contained in:
parent
88b899f7cb
commit
ee5b282957
|
@ -140,7 +140,7 @@ class Table extends Component {
|
||||||
<tr>
|
<tr>
|
||||||
{ headers.map( ( header, i ) => {
|
{ headers.map( ( header, i ) => {
|
||||||
const { cellClassName, isLeftAligned, isSortable, isNumeric, key, label, screenReaderLabel } = header;
|
const { cellClassName, isLeftAligned, isSortable, isNumeric, key, label, screenReaderLabel } = header;
|
||||||
const labelId = `header-${ instanceId } -${ i }`;
|
const labelId = `header-${ instanceId }-${ i }`;
|
||||||
const thProps = {
|
const thProps = {
|
||||||
className: classnames( 'woocommerce-table__header', cellClassName, {
|
className: classnames( 'woocommerce-table__header', cellClassName, {
|
||||||
'is-left-aligned': isLeftAligned,
|
'is-left-aligned': isLeftAligned,
|
||||||
|
|
Loading…
Reference in New Issue