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

fix(Pagination): pageInputDisabled won't append disabled class to buttons #2278

Merged

Conversation

jaknas
Copy link
Contributor

@jaknas jaknas commented Apr 28, 2019

Closes IBM/carbon-components-react#2264

Pagination component with pageInputDisabled: true prop would display forward and backward buttons as disabled, while they'd still work when clicking.

This PR disables check for pageInputDisabled so the buttons' styling is not affected by it.

disabled prop disables next/previous page buttons so it can be used in parallel with pageInputDisabled if that functionality is needed.

@netlify
Copy link

netlify bot commented Apr 28, 2019

Deploy preview for carbon-components-react ready!

Built with commit 27b92b3

https://deploy-preview-2278--carbon-components-react.netlify.com

@asudoh
Copy link
Contributor

asudoh commented Apr 29, 2019

@emyarod Could you review this, as the original code seems to have come from #1800? Thanks!

@asudoh asudoh requested a review from emyarod April 29, 2019 00:42
Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 - Thanks @Kleyu!

@asudoh asudoh merged commit b910758 into carbon-design-system:master Apr 30, 2019
@vpicone vpicone mentioned this pull request Apr 30, 2019
@jaknas jaknas deleted the pagination-fix-buttons-classnames branch May 2, 2019 09:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants