Do not allow selecting text in the Paginator component of the Product editor (#41405)

This commit is contained in:
Damián Suárez 2023-11-15 14:04:25 -03:00 committed by GitHub
commit 8486dfcdba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: enhancement
Do not allow to select text in the Paginator component

View File

@ -34,6 +34,9 @@ export function Pagination( {
onPerPageChange,
} );
// translators: Viewing 1-5 of 100 items. First two %ds are a range of items that are shown on the screen. The last %d is the total amount of items that exist.
const paginationLabel = __( 'Viewing %d-%d of %d items', 'woocommerce' );
return (
<div
className={ classNames(
@ -43,9 +46,7 @@ export function Pagination( {
>
<div className="woocommerce-product-variations-pagination__info">
{ sprintf(
// eslint-disable-next-line max-len
// translators: Viewing 1-5 of 100 items. First two %ds are a range of items that are shown on the screen. The last %d is the total amount of items that exist.
__( 'Viewing %d-%d of %d items', 'woocommerce' ),
paginationLabel,
paginationProps.start,
paginationProps.end,
totalCount

View File

@ -3,6 +3,7 @@
grid-template-columns: 1fr 1fr 1fr;
gap: $gap;
width: 100%;
user-select: none;
&__info,
&__current-page,