acl-services / paprika

🌶 A robust + accessible UI component library for React applications by Galvanize.
MIT License
54 stars 9 forks source link

Collapsible Segment optionally show the expand toggle #1227

Open tristanjasper opened 2 years ago

tristanjasper commented 2 years ago

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

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.

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.