# Bug DREAM-692 - Hide pagination buttons when they are disabled

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Frontend components and Primer design system |
| Target versions | 17.5.0 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Behrokh Satarnejad |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

###   

### Steps to reproduce

*   Go to a page with the a rails based pagination (e.e. Admin/Users)
    
*   Change the per page options so that only one &nbsp;page is shown
    

<br>

### What is the buggy behavior?

*   The left side of the pagination is useless
    

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

<br>

### What is the expected behavior?

*   Previous and Next should only be visible when there is a page to navigate to
    
*   The component is not visible when there is only one page
    

###
