| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
PatternFly-React preview: https://patternfly-react-pr-2586.surge.sh |
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry, something went wrong.
Am I missing a class? |
Sorry, something went wrong.
There was a problem hiding this comment.
Looking good. Can you update the demo app and the integration test please
Sorry, something went wrong.
There was a problem hiding this comment.
👍
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| }:OptionsToggleProps ) => { | ||
| return ( | ||
| <div className={css(styles.optionsMenuToggle, getModifier(styles, 'plain'), getModifier(styles, 'text'))} > | ||
| <div className={css(styles.optionsMenuToggle, isDisabled && getModifier(styles, 'disabled'), getModifier(styles, 'plain'), getModifier(styles, 'text'))} > |
There was a problem hiding this comment.
nit: it generally makes more sense to use getModifier if a variable prop can be matched to the style object. In this case i would change these to styles.disabled, styles.plain, etc..
Sorry, something went wrong.
There was a problem hiding this comment.
Ah I thought that was just how we retrieved modifier styles. I can change it to styles.modifiers.disabled and so on.
Sorry, something went wrong.
| import React from 'react'; | ||
| import { Pagination, PaginationVariant } from '@patternfly/react-core'; | ||
|
|
||
| class PaginationTop extends React.Component { |
There was a problem hiding this comment.
nit: class name should be PaginationDisabled. Doesn't affect the rendering but shows up in the sample code
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
Your changes have been released in:
Thanks for your contribution! 🎉 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What: Adds 'isDisabled' flag to disable the whole pagination component.
See issue: #2315