Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Pagination): enable seperate disable controls for page size, page #8345

Merged

Conversation

tw15egan
Copy link
Collaborator

@tw15egan tw15egan commented Apr 9, 2021

Closes #8311
Refs #6070
Refs #6055

This un-deprecates the pageInputDisabled prop, and adds in the pageSizeInputDisabled prop. Now, pageInputDisabled will only disable the right-sided page Select input. pageSizeInputDisabled will disable the left pageSize Select element.

disable will still disable all select elements

Changelog

New

  • pageSizeInputDisabled added to control the left page size Select element

Changed

  • pageInputDisabled will only target the right page Select element

Removed

  • Removed deprecation warning for pageInputDisabled so users have more control over which parts of the Pagination component they want disabled.

Testing / Reviewing

Use the knobs in the storybook to disable each select individually, and ensure the disable prop still works as expected and disabled all elements

Possibly breaking: Anyone that was using pageInputDisabled instead of disable to disable all elements will now only have the right page Select disabled.

@tw15egan tw15egan requested a review from a team as a code owner April 9, 2021 17:14
@tw15egan tw15egan requested review from a team and aagonzales and removed request for a team April 9, 2021 17:14
@netlify
Copy link

netlify bot commented Apr 9, 2021

Deploy preview for carbon-elements ready!

Built with commit a6f56f3

https://deploy-preview-8345--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Apr 9, 2021

Deploy preview for carbon-components-react ready!

Built with commit a6f56f3

https://deploy-preview-8345--carbon-components-react.netlify.app

@tw15egan tw15egan requested a review from a team as a code owner April 9, 2021 19:33
Copy link
Member

@aagonzales aagonzales 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! I good with the separate disabled controls

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

@clarebyrne
Copy link

@tw15egan is this ready to be merged?

@tw15egan
Copy link
Collaborator Author

@andreancardona can you review this when you get a chance?

@kodiakhq kodiakhq bot merged commit 02b939b into carbon-design-system:main Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pagination Page Selector needs to be disabled, without affecting page size
5 participants