FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(table): rename visible/hiddenOn2Xl to visible/hiddenOn_2xl by boaz0 · Pull Request #3365 · patternfly/patternfly-react · GitHub

fix(table): rename visible/hiddenOn2Xl to visible/hiddenOn_2xl - #3365

Merged
tlabaj merged 1 commit into
patternfly:masterfrom
boaz0:closes_3355
Dec 6, 2019
Merged

fix(table): rename visible/hiddenOn2Xl to visible/hiddenOn_2xl#3365
tlabaj merged 1 commit into
patternfly:masterfrom
boaz0:closes_3355

Conversation

boaz0 commented Dec 2, 2019

Copy link
Copy Markdown
Member

What: Closes #3355

Visibility doesn't have hiddenOn2Xl and visibleOn2Xl and that's why they are set to undefined and are not shown in the class prop.
Nevertheless, these two modifiers exist according to the pf4 core documentations.

The problem is that the way react-style parses a modifier name is if it has a number, it will add _ before it. Thus, hidden-on-2xl will be hiddenOn_2xl and not hiddenOn2Xl.

This patch fixes this and adds a test to verify it works.

Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>

Copy link
Copy Markdown
Collaborator

PatternFly-React preview: https://patternfly-react-pr-3365.surge.sh

codecov-io commented Dec 2, 2019
edited
Loading

Copy link
Copy Markdown

Codecov Report

Merging #3365 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #3365   +/-   ##
=======================================
  Coverage   67.53%   67.53%           
=======================================
  Files         897      897           
  Lines       25120    25120           
  Branches     2173     2173           
=======================================
  Hits        16966    16966           
  Misses       7141     7141           
  Partials     1013     1013
Flag Coverage Δ
#misc 95.45% <ø> (ø) ⬆️
#patternfly3 69.28% <ø> (ø) ⬆️
#patternfly4 65.04% <ø> (ø) ⬆️
Impacted Files Coverage Δ
...rc/components/Table/utils/decorators/classNames.ts 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b5016b5...835609e. Read the comment docs.

tlabaj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

tlabaj added the bug 🐛 label Dec 5, 2019
tlabaj merged commit 45049a2 into patternfly:master Dec 6, 2019

Copy link
Copy Markdown
Collaborator

Your changes have been released in:

  • @patternfly/react-docs@4.16.57
  • @patternfly/react-inline-edit-extension@2.14.7
  • @patternfly/react-table@2.24.51

Thanks for your contribution! 🎉

boaz0 deleted the closes_3355 branch December 8, 2019 21:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2Xl breakpoint modifiers not being correctly applied in https://www.patternfly.org/v4/documentation/react/components/table#breakpoint-modifiers

5 participants


Back | FazBrowse Home | New Git URL