| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
PatternFly-React preview: https://patternfly-react-pr-2633.surge.sh |
Sorry, something went wrong.
There was a problem hiding this comment.
Can't vouch for styles, but LGTM.
Sorry, something went wrong.
There was a problem hiding this comment.
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.
Sorry, something went wrong.
@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. |
Sorry, something went wrong.
|
@mcarrano It's fixed now can you take another look at the docs. |
Sorry, something went wrong.
| </Alert> | ||
| <br /> | ||
|
|
||
| ## Simple Drawer Component |
There was a problem hiding this comment.
Sentence case her please
Sorry, something went wrong.
There was a problem hiding this comment.
Done.
Sorry, something went wrong.
@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? |
Sorry, something went wrong.
| }: DrawerPanelContentProps) => ( | ||
| <aside className={css(styles.drawerPanel, className)} {...props}> | ||
| <div className={css(styles.drawerPanelBody)}> | ||
| <div className={css(styles.drawerPanelBody, styles.modifiers.noPadding)}> |
There was a problem hiding this comment.
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.
Sorry, something went wrong.
There was a problem hiding this comment.
okay will make this update
Sorry, something went wrong.
| /** Indicate if the drawer is expanded */ | ||
| isExpanded: boolean; | ||
| /** Indicates if the content element and panel element are displayed side by side. */ | ||
| isInline: boolean; |
There was a problem hiding this comment.
should be optional?
Sorry, something went wrong.
…rawer/DrawerPanelContent.tsx Co-Authored-By: Joachim <jschuler@redhat.com>
…rawer/Drawer.tsx Co-Authored-By: Joachim <jschuler@redhat.com>
…rawer/Drawer.tsx Co-Authored-By: Joachim <jschuler@redhat.com>
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
There was a problem hiding this comment.
nice!!
Sorry, something went wrong.
|
Your changes have been released in:
Thanks for your contribution! 🎉 |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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.