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

feat(PF4 - Drawer): Update drawer to expose all parts by karelhala · Pull Request #2733 · patternfly/patternfly-react · GitHub

feat(PF4 - Drawer): Update drawer to expose all parts - #2733

Merged
dlabaj merged 2 commits into
patternfly:masterfrom
karelhala:drawer-improvements
Aug 30, 2019
Merged

feat(PF4 - Drawer): Update drawer to expose all parts#2733
dlabaj merged 2 commits into
patternfly:masterfrom
karelhala:drawer-improvements

Conversation

Copy link
Copy Markdown
Contributor

What:

Thank you @dlabaj for experimental Drawer component! Usage is nice and straight forward, what do you think about exposing DrawerContent as well? This way users can add the DrawerPanelContent when they want to, for instance when data in it should be loaded from server so they want to show it only when user clicks on some element to show it. Also special classes and attributes can be aplied to Content so for instance if app has some special attributes to track where user is located they can do that easilly with this.

It's essentially the same, except that content is not part of Drawer itself, but special component and Panel is not sent trough prop but as child.

Copy link
Copy Markdown
Collaborator

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

redallen previously approved these changes Aug 20, 2019

redallen 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

This mirrors components like Card and Accordion better.

/** Indicates if the content element and panel element are displayed side by side. */
isInline?: boolean;
/** Content rendered in the drawer */
panelContent?: React.ReactNode;

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

Experimental 🎉

Copy link
Copy Markdown
Contributor Author

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

Exactly! Good way we added it in experimental so we can improve the API before it's full fledged component.

className="pf-c-drawer__content"
>

<Component>

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

Should change test to use mount instead of shallow so we can get more info here

Copy link
Copy Markdown
Contributor Author

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

Sure thing!

redallen 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

kmcfaul 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

dlabaj 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

Thanks @karelhala I like this better then the original. Thanks for making the updates.

dlabaj merged commit fad9cc6 into patternfly:master Aug 30, 2019

Copy link
Copy Markdown
Collaborator

Your changes have been released in:

  • @patternfly/react-core@3.95.0
  • @patternfly/react-docs@4.10.35
  • @patternfly/react-inline-edit-extension@2.11.10
  • demo-app-ts@2.21.14
  • @patternfly/react-table@2.19.10
  • @patternfly/react-topology@2.8.10
  • @patternfly/react-virtualized-extension@1.1.141

Thanks for your contribution! 🎉

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.

6 participants


Back | FazBrowse Home | New Git URL