# Bug DREAM-413 - Misc A11y issues, inconsistencies between `PaginationHelper` (Rails) and `TablePaginationComponent` (ng) implementations

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Accessibility |
| Target versions | 16.2.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 | Alexander Coles |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

FIx a number of additional accessibility issues and inconsistencies between the `PaginationHelper` (Rails) and `TablePaginationComponent` (ng) implementations.

\----

Similarities and differences in implementations:

## Pagination Items (`<ul>` in `nav.op-pagination--pages`)

<figure class="table op-uc-figure_align-center op-uc-figure"><table class="op-uc-table"><thead class="op-uc-table--head"><tr class="op-uc-table--row"><th class="op-uc-table--cell op-uc-table--cell_head"><p class="op-uc-p">Aspect</p></th><th class="op-uc-table--cell op-uc-table--cell_head"><p class="op-uc-p">ng</p></th><th class="op-uc-table--cell op-uc-table--cell_head"><p class="op-uc-p">Rails</p></th></tr></thead><tbody><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Previous/Next</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">&lt;button&gt;</code> elements</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">&lt;a&gt;</code> links with <code class="op-uc-code">href</code></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Page numbers</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">&lt;button&gt;</code> or <code class="op-uc-code">&lt;em&gt;</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">&lt;a&gt;</code> or <code class="op-uc-code">&lt;em&gt;</code></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Range display</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">&lt;li class="op-pagination--range"&gt;&lt;span&gt;(121 - 140/5519)&lt;/span&gt;&lt;/li&gt;</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">&lt;li class="op-pagination--range"&gt;(21 - 40/50)&lt;/li&gt;</code> — no <code class="op-uc-code">&lt;span&gt;</code> wrapper</p></td></tr></tbody></table></figure>

## Items per page (`div.op-pagination--options`)

<figure class="table op-uc-figure_align-center op-uc-figure"><table class="op-uc-table"><thead class="op-uc-table--head"><tr class="op-uc-table--row"><th class="op-uc-table--cell op-uc-table--cell_head"><p class="op-uc-p">Aspect</p></th><th class="op-uc-table--cell op-uc-table--cell_head"><p class="op-uc-p">ng</p></th><th class="op-uc-table--cell op-uc-table--cell_head"><p class="op-uc-p">Rails</p></th></tr></thead><tbody><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Container</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">&lt;ul&gt;</code> with <code class="op-uc-code">role="presentation"</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p">Same</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Label</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">&lt;li class="op-pagination--label" aria-label="Per page:"&gt;Per page:&lt;/li&gt;</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">&lt;li class="op-pagination--label"&gt;Per page:&lt;/li&gt;</code> (no <code class="op-uc-code">aria-label</code>)</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Selected item</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">&lt;li&gt;</code> with <code class="op-uc-code">&lt;span&gt;</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">&lt;li&gt;</code> with <code class="op-uc-code">&lt;span&gt;</code> — same</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Other options</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">&lt;button&gt;</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">&lt;a&gt;</code> with <code class="op-uc-code">href</code> and <code class="op-uc-code">target="_top"</code></p></td></tr></tbody></table></figure>

## Attributes

<figure class="table op-uc-figure_align-center op-uc-figure"><table class="op-uc-table"><thead class="op-uc-table--head"><tr class="op-uc-table--row"><th class="op-uc-table--cell op-uc-table--cell_head"><p class="op-uc-p">Element</p></th><th class="op-uc-table--cell op-uc-table--cell_head"><p class="op-uc-p">ng</p></th><th class="op-uc-table--cell op-uc-table--cell_head"><p class="op-uc-p">Rails</p></th></tr></thead><tbody><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Navigation links</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">type="button"</code>, <code class="op-uc-code">rel="prev/next"</code>, <code class="op-uc-code">aria-label</code> on <code class="op-uc-code">&lt;button&gt;</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">href</code> attribute present, <code class="op-uc-code">data-turbo-stream="true"</code>, <code class="op-uc-code">rel="prev/next"</code></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Icons (</strong><code class="op-uc-code"><strong>&lt;svg&gt;</strong></code><strong>)</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p">Uses <code class="op-uc-code">&lt;svg&gt;</code> inside <code class="op-uc-code">&lt;button&gt;</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p">Uses <code class="op-uc-code">&lt;svg&gt;</code> inside <code class="op-uc-code">&lt;a&gt;</code></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Range</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p">Uses <code class="op-uc-code">&amp;nbsp;</code> for spacing</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Plain text</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Per page links</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p">Uses <code class="op-uc-code">&lt;button&gt;</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p">Uses <code class="op-uc-code">&lt;a href="..."&gt;</code> with <code class="op-uc-code">target="_top"</code></p></td></tr></tbody></table></figure>
