Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upfeat(accordion): Add accordion to pf #1511
Conversation
3f7d31c
to
b108c4a
bc0e1e6
to
3eaad26
This comment has been minimized.
This comment has been minimized.
Rebase on latest master to fix CircleCI errors and get a deploy preview. |
This comment has been minimized.
This comment has been minimized.
codecov-io
commented
Mar 7, 2019
•
Codecov Report
@@ Coverage Diff @@
## master #1511 +/- ##
==========================================
+ Coverage 82.74% 82.78% +0.03%
==========================================
Files 601 608 +7
Lines 6647 6696 +49
Branches 72 76 +4
==========================================
+ Hits 5500 5543 +43
- Misses 1120 1123 +3
- Partials 27 30 +3
Continue to review full report at Codecov.
|
...ages/patternfly-4/react-core/src/components/Accordion/AccordionToggle.js
Show resolved
Hide resolved
packages/patternfly-4/react-core/src/components/Accordion/AccordionItem.js
Outdated
Show resolved
Hide resolved
...ges/patternfly-4/react-core/src/components/Accordion/AccordionContent.js
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
CircleCI times out before it shows this, but there is this error that needs to be fixed that happens when building the docs locally @ibolton336 :
Run |
...ernfly-4/react-core/src/components/Accordion/examples/SimpleAccordion.js
Outdated
Show resolved
Hide resolved
@ibolton336 can you add the accordian wrapper to your PR? you will need to wait until master has updated to a later version of core. This is a change from core referenced in issue #1682 |
@ibolton336 The way the docs are being generated was recently changed, can you please rebase and move the examples into the MD file. |
b3028ff
to
9751033
This comment has been minimized.
This comment has been minimized.
PatternFly-React preview: https://1511-pr-patternfly-react-patternfly.surge.sh |
This comment has been minimized.
This comment has been minimized.
I don't think that the behavior is quite right here. In a classic accordion control, only one panel is ever opened at a time. See the behavior of the PF3 Accordion component, for example: https://www.patternfly.org/pattern-library/widgets/#accordion Note here that opening a new panel closes the current one. That said, it could be useful to have both variations - one with simple collapsible panels as you have now and another withe the accordion behavior as described above. The other thing I questioned was the difference between the Simple and the Fixed accordion. My understanding is that the intent of the fixed accordion is that the height is constrained. So if the contents will not fit within the max height, a scrollbar will be exposed within the open panel to scroll the content. Is that also what you intended @mcoker ? |
This comment has been minimized.
This comment has been minimized.
@mcarrano Agreed re: having the option for both types of behavior. Re: the fixed examples, yep - looking at the pf3 fixed height accordion, this accordion is the same where the max height is defined on the expandable panel for an accordion item. In the PF3 examples, that max-height is 69px. In the PF4 component, looks like we went with 150px. Also the And when an item is expanded, we also need to add |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Some initial comments after a quick review...
The section headings that are expand/collapse buttons have Core does not include |
LGTM |
ibolton336 commentedMar 6, 2019
What: closes #1387
Additional issues: