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

feat(drawer): Added the drawer component to experimental by dlabaj · Pull Request #2633 · patternfly/patternfly-react · GitHub

feat(drawer): Added the drawer component to experimental - #2633

Merged
jschuler merged 20 commits into
patternfly:masterfrom
dlabaj:drawer-component
Aug 9, 2019
Merged

feat(drawer): Added the drawer component to experimental#2633
jschuler merged 20 commits into
patternfly:masterfrom
dlabaj:drawer-component

Conversation

dlabaj commented Aug 2, 2019

Copy link
Copy Markdown
Contributor

Fixes #1938

Added drawer component to experimental features similar to what was done for core (https://pf4.patternfly.org/components/Drawer/examples/)

TODO:

Adding unit and component tests now will update this PR with those tests.

Copy link
Copy Markdown
Collaborator

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

redallen previously approved these changes Aug 2, 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

Can't vouch for styles, but LGTM.

mcarrano left a comment

Copy link
Copy Markdown
Member

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 looks good @dlabaj , but I'm a bit confused about what's different about the two examples. The first one should overlay content on the page and the second would push page content into a smaller container, right? I can't really tell from these examples if that's what's happening since it looks like the page content and the drawer are not competing for the same space.

dlabaj commented Aug 2, 2019

Copy link
Copy Markdown
Contributor Author

This looks good @dlabaj , but I'm a bit confused about what's different about the two examples. The first one should overlay content on the page and the second would push page content into a smaller container, right? I can't really tell from these examples if that's what's happening since it looks like the page content and the drawer are not competing for the same space.

@mcarrano The styles are messed up due to the import of pattternfly.css and base.css coming before the drawer component. Trying to figure out how to fix it now.

dlabaj commented Aug 5, 2019

Copy link
Copy Markdown
Contributor Author

@mcarrano It's fixed now can you take another look at the docs.

</Alert>
<br />

## Simple Drawer 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

Sentence case her please

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

Done.

mcarrano commented Aug 5, 2019

Copy link
Copy Markdown
Member

Updates look good @dlabaj . This may be more of a CSS issue, but ion the second (inline) example, should there be some padding between the edge of the drawer and the content area? Thoughts @mcoker ?

mcoker commented Aug 5, 2019

Copy link
Copy Markdown
Contributor

This may be more of a CSS issue, but ion the second (inline) example, should there be some padding between the edge of the drawer and the content area?

@mcarrano that's a good point. On second thought, seems like both the main element (holds the main content) and drawer element (hold's the drawer panel's content) should have padding by default, and the option to remove it, if the user wants to add their own layout that has its own padding. What do you think of that?

dlabaj dismissed stale reviews from mcarrano and tlabaj via f1d719c August 8, 2019 16:16
}: DrawerPanelContentProps) => (
<aside className={css(styles.drawerPanel, className)} {...props}>
<div className={css(styles.drawerPanelBody)}>
<div className={css(styles.drawerPanelBody, styles.modifiers.noPadding)}>

mcoker Aug 8, 2019
edited
Loading

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

looks like this just adds the modifier? It should be a prop you can define for the panel content that applies this class. Without the prop defined (default), or set to false, the panel should have padding. With the prop defined and not set to false, the panel should have no padding around it (as it does right now).

FWIW, we'll be adding the same type of prop for the drawer content element, too, but I need to make that change in core first.

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

okay will make this update

/** Indicate if the drawer is expanded */
isExpanded: boolean;
/** Indicates if the content element and panel element are displayed side by side. */
isInline: boolean;

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 be optional?

jschuler previously approved these changes Aug 9, 2019
tlabaj previously approved these changes Aug 9, 2019

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

dlabaj dismissed stale reviews from tlabaj and jschuler via 4e9e48e August 9, 2019 16:43
jschuler previously approved these changes Aug 9, 2019

mcoker 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

nice!!

jschuler merged commit ff6d905 into patternfly:master Aug 9, 2019

Copy link
Copy Markdown
Collaborator

Your changes have been released in:

  • @patternfly/react-core@3.85.0
  • @patternfly/react-docs@4.10.0
  • @patternfly/react-inline-edit-extension@2.9.73
  • demo-app-ts@2.18.0
  • @patternfly/react-integration@2.18.0
  • @patternfly/react-table@2.16.12
  • @patternfly/react-topology@2.7.21
  • @patternfly/react-virtualized-extension@1.1.107

Thanks for your contribution! 🎉

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

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.

Introduce drawer component for react

7 participants


Back | FazBrowse Home | New Git URL