♻️(react) make Pagination to use new Input
The Pagination component was not using the label of new Input.
This commit is contained in:
5
.changeset/slow-wolves-reflect.md
Normal file
5
.changeset/slow-wolves-reflect.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@openfun/cunningham-react": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
make Pagination use new Input
|
||||||
@@ -15,5 +15,9 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
|
|
||||||
|
.c__field--default {
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -146,9 +146,6 @@ export const Pagination = ({
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="c__pagination__goto">
|
<div className="c__pagination__goto">
|
||||||
<div className="fs-m clr-greyscale-700">
|
|
||||||
{t("components.pagination.goto_label")}
|
|
||||||
</div>
|
|
||||||
<form
|
<form
|
||||||
onSubmit={(e) => {
|
onSubmit={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@@ -157,6 +154,7 @@ export const Pagination = ({
|
|||||||
>
|
>
|
||||||
<Input
|
<Input
|
||||||
type="number"
|
type="number"
|
||||||
|
label={t("components.pagination.goto_label")}
|
||||||
aria-label={t("components.pagination.goto_label_aria")}
|
aria-label={t("components.pagination.goto_label_aria")}
|
||||||
size={2}
|
size={2}
|
||||||
value={gotoValue}
|
value={gotoValue}
|
||||||
|
|||||||
Reference in New Issue
Block a user