-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
enhancementA suggestion to add to or change behaviorA suggestion to add to or change behavior
Description
Is this something you or your team is interested in contributing a pull request towards?
Expected Behavior
The List component should be able to hide the index of the items if the onOrder function is given.
Actual Behavior
On each line there is a row number (index + 1 value) if the onOrder function is given.
URL, screen shot, or Codepen exhibiting the issue
<StyledItem
key={key}
tag="li"
background={adjustedBackground}
border={adjustedBorder}
isDisabled={isDisabled}
flex={false}
pad={pad || theme.list.item.pad}
{...defaultItemProps}
{...boxProps}
{...clickProps}
{...orderProps}
{...itemAriaProps}
>
{onOrder && <Text color={pinnedColor}>{index + 1}</Text>} // this line should be optional
{content}
{displayPinned}
{orderControls}
</StyledItem>
Metadata
Metadata
Assignees
Labels
enhancementA suggestion to add to or change behaviorA suggestion to add to or change behavior