Switch arrow unicode characters (https://github.com/woocommerce/woocommerce-blocks/pull/4364)
* Switch arrow unicode characters * flip arrow with css
This commit is contained in:
parent
f735f698e0
commit
870a8c0b93
|
@ -58,7 +58,7 @@ const Pagination = ( {
|
|||
/>
|
||||
{ displayNextAndPreviousArrows && (
|
||||
<button
|
||||
className="wc-block-pagination-page wc-block-components-pagination__page"
|
||||
className="wc-block-pagination-page wc-block-components-pagination__page wc-block-pagination-page--arrow"
|
||||
onClick={ () => onPageChange( currentPage - 1 ) }
|
||||
title={ __(
|
||||
'Previous page',
|
||||
|
@ -67,7 +67,7 @@ const Pagination = ( {
|
|||
disabled={ currentPage <= 1 }
|
||||
>
|
||||
<Label
|
||||
label="<"
|
||||
label="←"
|
||||
screenReaderLabel={ __(
|
||||
'Previous page',
|
||||
'woo-gutenberg-products-block'
|
||||
|
@ -175,13 +175,13 @@ const Pagination = ( {
|
|||
) }
|
||||
{ displayNextAndPreviousArrows && (
|
||||
<button
|
||||
className="wc-block-pagination-page wc-block-components-pagination__page"
|
||||
className="wc-block-pagination-page wc-block-components-pagination__page wc-block-pagination-page--arrow"
|
||||
onClick={ () => onPageChange( currentPage + 1 ) }
|
||||
title={ __( 'Next page', 'woo-gutenberg-products-block' ) }
|
||||
disabled={ currentPage >= totalPages }
|
||||
>
|
||||
<Label
|
||||
label=">"
|
||||
label="→"
|
||||
screenReaderLabel={ __(
|
||||
'Next page',
|
||||
'woo-gutenberg-products-block'
|
||||
|
|
|
@ -49,3 +49,8 @@
|
|||
opacity: 1 !important;
|
||||
}
|
||||
}
|
||||
|
||||
html[dir="rtl"] .wc-block-pagination-page--arrow span {
|
||||
display: inline-block;
|
||||
transform: scale(-1, 1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue