Add Ability to Use chevron and rightComponent prop on the InfoListItem at the same time #364
Labels
brightlayer-ui
Used to identify Brightlayer UI platform issues for easy filtering
bug
Something not working as expected
drawer
Affects Drawer Component
info-list-item
Affects Info List Item Component
Milestone
Describe the bug
On the InfoListItem, if you specify
rightComponent
it will override the chevron and only show the right component.What is the expected behavior?
User should be able to show the chevron and a custom rightComponent without having to manually combine them in the rightComponent prop.
What are the steps to reproduce?
yarn start:showcase
chevron={true}
andrightComponent={/*something*/}
Anything else to add?
We have a pseudo workaround already in place within the DrawerNavItem. It is doing the work of combining the chevron and a rightComponent into one item for rightComponent. We should be able to base the approach around this, but in the ILI instead.
When fixing this, we will also need to do some refactoring in the Drawer components so that chevron and rightComponent are able to be passed down independently to the ILI.
The text was updated successfully, but these errors were encountered: