-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve sidebar accordion #409
base: XP-3053-search-profile-display
Are you sure you want to change the base?
Improve sidebar accordion #409
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks very good! I tested locally on Storybook and works as expected! Well done @Moharu 🎉
Just left a suggestion to change let
for const
. Unless I missed the reason of that choice. Everything else looks great to me.
|
||
componentDidMount = () => { | ||
if (!this.state.isControlled) { | ||
let { children } = this.props |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this should be const
instead?
componentDidMount = () => { | ||
if (!this.state.isControlled) { | ||
let { children } = this.props | ||
let childrenCount = React.Children.count(children) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also can be const
Release Type: Dev Improvements
Creates the component mentioned in https://github.com/x-team/xp/issues/1927
Description
Creates a dedicated Accordion UI Component that holds all knowledge about its
GenericCollapsible
children, abstracting all necessary toggle controls.Checklist
Before submitting a pull request, please make sure the following is done:
In Review
orIn Progress
depending on its status)npm run lint
)npm run flow
)npm run jest
).stories.js
file) is changed or added accordingly to reflect any new or updated use cases or variants usageSteps to Test or Reproduce
Check the multiple cases for
GenericCollapsibleAccordion
in Storybook.Impacted Areas in Application
GenericCollapsibleAccordion