| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #2251 +/- ##
=========================================
Coverage ? 80.59%
=========================================
Files ? 666
Lines ? 8441
Branches ? 719
=========================================
Hits ? 6803
Misses ? 1280
Partials ? 358
Continue to review full report at Codecov.
|
Sorry, something went wrong.
|
PatternFly-React preview: https://2251-pr-patternfly-react-patternfly.surge.sh |
Sorry, something went wrong.
|
Thanks @boaz0! Does this only allow you to pass a single breakpoint to visibleBreakpoint or hiddenBreakpoint? If so, we'll want to extend it so you can, for example, show at xs (0), hide on sm, show on md, hide on lg, and show again on xl. And it looks like hiddenBreakpoint="" will hide something at all breakpoints? Personally I think that's fine as long as it's documented, but since you're passing breakpoints, seems like you should also be able to pass "xs" (0) there to do the same thing. And since this is the same exact functionality that we use in the table component with this syntax classNames(Visibility.hidden, Visibility.visibleOnMd, Visibility.hiddenOnLg), and we'll likely add this functionality to other components in the future, I wonder if we should use a similar approach in the classes or names used to show/hide content? |
Sorry, something went wrong.
|
@mcoker thanks for your feedback ❤️ ! I will update this PR to match the requirements. 😄 |
Sorry, something went wrong.
|
PatternFly-React preview: https://patternfly-react-pr-2251.surge.sh |
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
Left one comment, otherwise looks really good
Sorry, something went wrong.
| constructor(props) { | ||
| super(props); | ||
| this.state = { isOpen: false }; | ||
| this.state = { isOpen1: false, isOpen2: false }; |
There was a problem hiding this comment.
is isOpen3 missing here?
Sorry, something went wrong.
There was a problem hiding this comment.
That's odd I thought I added it. Thanks for the double check.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
There was a problem hiding this comment.
lgtm
Sorry, something went wrong.
| 'hiddenOnMd', | ||
| 'hiddenOnLg', | ||
| 'hiddenOnXl', | ||
| 'hiddenOn2Xl', |
There was a problem hiding this comment.
Just want to confirm this should be [hidden/visible]On2Xl and not [hidden/visible]On2xl? Not sure how numbers play with camel case.
Sorry, something went wrong.
There was a problem hiding this comment.
Hmm... I'm trying the [hidden/visible]On2Xl props and they don't seem to be working. Can someone confirm? @tlabaj or @christiemolloy. I'm probably doing it wrong :)
Sorry, something went wrong.
There was a problem hiding this comment.
I actually was wondering the same thing...
Sorry, something went wrong.
There was a problem hiding this comment.
hiddenOn2Xl is correct. It comes from our Javascript variable names being camelcased in react-styles based on the css variables.
Sorry, something went wrong.
There was a problem hiding this comment.
I also do not see the [hidden/visible]On2Xl being applied.
Sorry, something went wrong.
There was a problem hiding this comment.
For now I wrote a workaround for that. Please review and let me know what you think.
Thanks.
Sorry, something went wrong.
There was a problem hiding this comment.
Investigating Michael's comments
Sorry, something went wrong.
| 'hiddenOnMd', | ||
| 'hiddenOnLg', | ||
| 'hiddenOnXl', | ||
| 'hiddenOn_2xl', |
There was a problem hiding this comment.
Workaround looks good. Thanks as always @boaz0 ! 👍
Sorry, something went wrong.
|
@boaz0 the preview URL isn't working for some reason, but I built it locally and looks like the 2xl breakpoints are working, but looks like the base DataListActionVisibility.hidden isn't working. |
Sorry, something went wrong.
| /> | ||
| </DataListAction> | ||
| <DataListAction | ||
| className={css(DataListActionVisibility.visibleOnXl, DataListActionVisibility.hidden)} |
There was a problem hiding this comment.
The buttons are still visible when i reduce the screen width
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks. I will be looking into it. 😄
Sorry, something went wrong.
There was a problem hiding this comment.
Yep, I found the problem!
Sorry, something went wrong.
There was a problem hiding this comment.
I am just adding unit tests.
Sorry, something went wrong.
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
Naming comments were investigated and fixed.
|
Your changes have been released in:
Thanks for your contribution! 🎉 |
Sorry, something went wrong.
|
Thanks a lot: @jschuler @redallen @mcoker @tlabaj and @christiemolloy |
Sorry, something went wrong.
|
@tlabaj can you give me a way to reproduce it in https://patternfly-react.surge.sh/patternfly-4/components/datalist/ or any way that I can see where it's not working. I tried it on https://patternfly-react.surge.sh/patternfly-4/ and it looks OK. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What:
closes #2221 and fixes #2197