a11y(2.5.8): pagination — grow caret buttons from 12×12 to 24×24 CSS px#3547
Open
rosanusi wants to merge 2 commits into
Open
a11y(2.5.8): pagination — grow caret buttons from 12×12 to 24×24 CSS px#3547rosanusi wants to merge 2 commits into
rosanusi wants to merge 2 commits into
Conversation
The .caret button rendered at 12×12 CSS px — half the WCAG 2.5.8 24×24 minimum. Changing width/height from 12px to 24px and adding inline-flex items-center justify-center centres the existing CSS triangle decoration within the enlarged hit area. Applied to both api-pagination.svelte and pagination.svelte. A11y-Audit-Ref: 2.5.8-pagination-caret-buttons Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Contributor
|
@rosanusi I had to apply a fix here to address a visual regression caused by this PR. |
ardiewen
approved these changes
Jun 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
The Previous/Next page caret buttons in
api-pagination.svelteandpagination.sveltehad.caret { width: 12px; height: 12px; }— half the WCAG 2.5.8 (Target Size Minimum, Level AA) 24×24 requirement.Fix: change both dimensions to 24px and add
inline-flex items-center justify-centerso the existing CSS-triangle<span class="arrow">stays visually centred within the enlarged hit area. Applied identically to both files.Changed files:
src/lib/holocene/api-pagination.svelte—.caretblocksrc/lib/holocene/pagination.svelte—.caretblockThis fix cascades to all consumers in both
ui-mainandcloud-ui-main(via the@temporalio/uitarball).Screenshots
No change to the visible arrow triangle. The transparent padding around it grows from 0 to 6 px per side.
Design
No design changes. The arrow decoration is unchanged; only the button's interactive hit area is enlarged.
Testing
<ApiPagination>). Inspect the Previous/Next caret buttons —getBoundingClientRect()returns 24×24.opacity-50.Checklist
@temporalio/uitarballDocs
No documentation changes required.
A11y-Audit-Ref: 2.5.8-pagination-caret-buttons