Skip to content
This repository was archived by the owner on Oct 19, 2021. It is now read-only.

Commit 1db0349

Browse files
rezak-otmanitw15egan
authored andcommitted
fix(PaginationV2): adjust spacing, resolves #778 (#844)
1 parent 2a66ee5 commit 1db0349

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/components/PaginationV2/PaginationV2-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe('Pagination', () => {
6060

6161
it('should label the dropdown', () => {
6262
const label = left.find('.bx--pagination__text').first();
63-
expect(label.text()).toBe('Items per page:\u00a0\u00a0');
63+
expect(label.text()).toBe('Items per page:');
6464
});
6565

6666
it('should support translated label with colon', () => {
@@ -69,7 +69,7 @@ describe('Pagination', () => {
6969
.find('.bx--pagination__left')
7070
.find('.bx--pagination__text')
7171
.first();
72-
expect(label.text()).toBe('foo\u00a0\u00a0');
72+
expect(label.text()).toBe('foo');
7373
});
7474

7575
it('should show the item range out of the total', () => {
@@ -98,7 +98,7 @@ describe('Pagination', () => {
9898

9999
it('should label the dropdown', () => {
100100
const label = left.find('.bx--pagination__text').first();
101-
expect(label.text()).toBe('Items per page:\u00a0\u00a0');
101+
expect(label.text()).toBe('Items per page:');
102102
});
103103

104104
it('should support translated label with colon', () => {
@@ -107,7 +107,7 @@ describe('Pagination', () => {
107107
.find('.bx--pagination__left')
108108
.find('.bx--pagination__text')
109109
.first();
110-
expect(label.text()).toBe('foo\u00a0\u00a0');
110+
expect(label.text()).toBe('foo');
111111
});
112112

113113
it('should show the item range without the total', () => {

src/components/PaginationV2/PaginationV2.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,9 @@ export default class PaginationV2 extends Component {
238238
<div className={classNames} {...other}>
239239
<div className="bx--pagination__left">
240240
<span className="bx--pagination__text">
241-
{itemsPerPageFollowsText || `${itemsPerPageText}:`}&nbsp;&nbsp;
241+
{itemsPerPageFollowsText || `${itemsPerPageText}:`}
242242
</span>
243+
243244
<Select
244245
id={`bx-pagination-select-${inputId}`}
245246
labelText={itemsPerPageText}

0 commit comments

Comments
 (0)