# Feature DREAM-670 - Extend the SubHeader component to support quick filter components

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-670

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 17.5.0 |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| DREAM-691 | Bug | Quick filter should remain visible on mobile when there is only one | closed |  | 17.5.0 |  | Frontend components and Primer design system, Frontend components and Primer design system / Sub header, Frontend components and Primer design system / Quick filter |
| DREAM-686 | Bug | Quick filters don't react good to medium screen sizes | closed |  | 17.5.0 |  | Frontend components and Primer design system |

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Frontend components and Primer design system, Frontend components and Primer design system / Sub header, Frontend components and Primer design system / Quick filter |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers | Henriette Darge |
| Designer | Marc Alcobé |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

# **Acceptance criteria**

The &nbsp;`SubHeader` can handle quick filter components being passed in:

*   There is a boolean flag for the search bar to collapse into an icon button. On click, the input is shown (like it is currently on mobile).
    
*   There is a single slot: `all_filters_button` (name can be different)
    
*   There is a multi value slot `quick_filters` (name can be different)
    
    *   When this is used, the `all_filters_button` is required
        
*   On mobile:
    
    *   The `quick_filters` are hidden
        
    *   The search remains visible
        
    *   The `all_filters_button` collapses into a icon only button
        

**Visual reference**

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/920431/content">

**Out of scope**

*   This does not include adding any kind of quick filter component
    

<br>
