Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Switch arrow unicode characters (#4364)
Browse files Browse the repository at this point in the history
* Switch arrow unicode characters

* flip arrow with css
  • Loading branch information
mikejolley committed Jul 12, 2021
1 parent 70d5ab0 commit c054cc2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/js/base/components/pagination/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -67,7 +67,7 @@ const Pagination = ( {
disabled={ currentPage <= 1 }
>
<Label
label="<"
label="&larr;"
screenReaderLabel={ __(
'Previous page',
'woo-gutenberg-products-block'
Expand Down Expand Up @@ -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="&rarr;"
screenReaderLabel={ __(
'Next page',
'woo-gutenberg-products-block'
Expand Down
5 changes: 5 additions & 0 deletions assets/js/base/components/pagination/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,8 @@
opacity: 1 !important;
}
}

html[dir="rtl"] .wc-block-pagination-page--arrow span {
display: inline-block;
transform: scale(-1, 1);
}

0 comments on commit c054cc2

Please sign in to comment.