You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An issue was raised in my product team's repo regarding the pagination footer showing items if there was only one item and pages if there was only one page. I confirmed in lines 148 and 312 in Pagination.js that it was a Carbon issue.
Is this issue related to a specific component?
Pagination
What did you expect to happen? What happened instead? What would you like to
see changed?
Add conditional logic so that if max === 1 or totalPages === 1 the singular version of their noun shows.
Additional information
The text was updated successfully, but these errors were encountered:
as an FYI this can be resolved by passing in a custom pageRangeText function to handle the grammatical changes (which would be necessary for any i18n efforts anyway)
Detailed description
An issue was raised in my product team's repo regarding the pagination footer showing
items
if there was only one item andpages
if there was only one page. I confirmed in lines 148 and 312 inPagination.js
that it was a Carbon issue.Pagination
Add conditional logic so that if
max === 1
ortotalPages === 1
the singular version of their noun shows.Additional information
The text was updated successfully, but these errors were encountered: