diff --git a/plugins/woocommerce-admin/packages/components/src/table/table.js b/plugins/woocommerce-admin/packages/components/src/table/table.js index 431095d31e7..f5c2602bac7 100644 --- a/plugins/woocommerce-admin/packages/components/src/table/table.js +++ b/plugins/woocommerce-admin/packages/components/src/table/table.js @@ -161,6 +161,15 @@ class Table extends Component { ? sprintf( __( 'Sort by %s in ascending order', 'wc-admin' ), screenReaderLabel ) : sprintf( __( 'Sort by %s in descending order', 'wc-admin' ), screenReaderLabel ); + const textLabel = ( + + { label } + { screenReaderLabel && ( + { screenReaderLabel } + ) } + + ); + return ( { isSortable ? ( @@ -177,17 +186,14 @@ class Table extends Component { onClick={ this.sortBy( key ) } isDefault > - { label } - { screenReaderLabel && ( - { screenReaderLabel } - ) } + { textLabel } { iconLabel } ) : ( - label + textLabel ) } );