Skip to content

Commit

Permalink
♻️(react) make Pagination to use new Input
Browse files Browse the repository at this point in the history
The Pagination component was not using the label of new Input.
  • Loading branch information
NathanVss committed Apr 25, 2023
1 parent feea284 commit 26be159
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/slow-wolves-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@openfun/cunningham-react": patch
---

make Pagination use new Input
4 changes: 4 additions & 0 deletions packages/react/src/components/Pagination/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@
display: flex;
align-items: center;
gap: 0.5rem;

.c__field--default {
width: 100px;
}
}
}
4 changes: 1 addition & 3 deletions packages/react/src/components/Pagination/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,6 @@ export const Pagination = ({
/>
</div>
<div className="c__pagination__goto">
<div className="fs-m clr-greyscale-700">
{t("components.pagination.goto_label")}
</div>
<form
onSubmit={(e) => {
e.preventDefault();
Expand All @@ -157,6 +154,7 @@ export const Pagination = ({
>
<Input
type="number"
label={t("components.pagination.goto_label")}
aria-label={t("components.pagination.goto_label_aria")}
size={2}
value={gotoValue}
Expand Down

0 comments on commit 26be159

Please sign in to comment.