Skip to content

Commit f187e04

Browse files
committed
[fixed] Use actual ellipsis in pagination
1 parent e95a59c commit f187e04

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Pagination.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const Pagination = React.createClass({
1616
*/
1717
boundaryLinks: React.PropTypes.bool,
1818
/**
19-
* When `true`, will display the default node value ('...').
19+
* When `true`, will display the default node value ('…').
2020
* Otherwise, will display provided node (when specified).
2121
*/
2222
ellipsis: React.PropTypes.oneOfType([
@@ -130,7 +130,7 @@ const Pagination = React.createClass({
130130
disabled
131131
buttonComponentClass={buttonComponentClass}>
132132
<span aria-label="More">
133-
{this.props.ellipsis === true ? '...' : this.props.ellipsis}
133+
{this.props.ellipsis === true ? '\u2026' : this.props.ellipsis}
134134
</span>
135135
</PaginationButton>
136136
);
@@ -154,7 +154,7 @@ const Pagination = React.createClass({
154154
disabled
155155
buttonComponentClass={buttonComponentClass}>
156156
<span aria-label="More">
157-
{this.props.ellipsis === true ? '...' : this.props.ellipsis}
157+
{this.props.ellipsis === true ? '\u2026' : this.props.ellipsis}
158158
</span>
159159
</PaginationButton>
160160
);

test/PaginationSpec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ describe('Pagination', () => {
7171

7272
assert.equal(pageButtons[0].innerText, '«');
7373
assert.equal(pageButtons[1].innerText, '‹');
74-
assert.equal(pageButtons[5].innerText, '...');
74+
assert.equal(pageButtons[5].innerText, '');
7575
assert.equal(pageButtons[6].innerText, '›');
7676
assert.equal(pageButtons[7].innerText, '»');
7777

@@ -93,8 +93,8 @@ describe('Pagination', () => {
9393
let pageButtons = ReactTestUtils.scryRenderedDOMComponentsWithTag(instance, 'li');
9494
// add first, last, prev, next and ellipsis button
9595
assert.equal(pageButtons[2].innerText, '1');
96-
assert.equal(pageButtons[3].innerText, '...');
97-
assert.equal(pageButtons[7].innerText, '...');
96+
assert.equal(pageButtons[3].innerText, '');
97+
assert.equal(pageButtons[7].innerText, '');
9898
assert.equal(pageButtons[8].innerText, '20');
9999
});
100100

0 commit comments

Comments
 (0)