acl-services / acl-services/paprika

Collapsible Segment optionally show the expand toggle

Open
#1,227 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
54
Forks
10
Avg merge
1d 12h
Merged PRs (30d)
6

Description

Sometimes we need to render a collapsible section with 0 items in the body but still need the segment to show (eg if there is a button on it).
If that is the case I don't think we should render the expand toggle as it is misleading and doesnt' do anything. We could add a prop to teh segment to control if it is rendered or not

Eg for this ui on workflows
![image](https://user-images.githubusercontent.com/4040102/152449434-19e0cb21-2451-4bb5-952f-3f26900bc40c.png)

# Feature request
## Prerequisites
**This is just a checklist, please delete this section after**
Please answer the following questions for yourself before submitting a feature request.
- [ ] I checked to make sure that this feature has not already been suggested
- [ ] Please label as, low / medium / high priority

*Please fill in as much detail as possible*

## Is your feature request related to a problem?
*A clear and concise description of what the problem is*

## Describe the solution you'd like
*A clear and concise description of what you want to happen.*

## Describe alternatives you've considered
*A clear and concise description of any alternative solutions or features you've considered.*

## Additional context
*Add any other context or screenshots about the feature request here.*

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.