-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(Pagination): enable seperate disable controls for page size, page #8345
Conversation
Deploy preview for carbon-elements ready! Built with commit a6f56f3 |
Deploy preview for carbon-components-react ready! Built with commit a6f56f3 https://deploy-preview-8345--carbon-components-react.netlify.app |
f9fff94
to
862142c
Compare
There was a problem hiding this 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
There was a problem hiding this 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
@tw15egan is this ready to be merged? |
@andreancardona can you review this when you get a chance? |
fc99769
to
8614495
Compare
Closes #8311
Refs #6070
Refs #6055
This un-deprecates the
pageInputDisabled
prop, and adds in thepageSizeInputDisabled
prop. Now,pageInputDisabled
will only disable the right-sidedpage
Select
input.pageSizeInputDisabled
will disable the leftpageSize
Select
element.disable
will still disable all select elementsChangelog
New
pageSizeInputDisabled
added to control the left page sizeSelect
elementChanged
pageInputDisabled
will only target the right pageSelect
elementRemoved
pageInputDisabled
so users have more control over which parts of thePagination
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 elementsPossibly breaking: Anyone that was using
pageInputDisabled
instead ofdisable
to disable all elements will now only have the right pageSelect
disabled.