diff --git a/website/src/repl/components/incrementor/Incrementor.jsx b/website/src/repl/components/incrementor/Incrementor.jsx index f03a98da..5f722fb7 100644 --- a/website/src/repl/components/incrementor/Incrementor.jsx +++ b/website/src/repl/components/incrementor/Incrementor.jsx @@ -16,7 +16,16 @@ function IncButton({ children, className, ...buttonProps }) { ); } -export function Incrementor({ onChange, value, min = -Infinity, max = Infinity, className, ...incrementorProps }) { +export function Incrementor({ + onChange, + value, + min = -Infinity, + max = Infinity, + className, + incrementLabel = 'next page', + decrementLabel = 'prev page', + ...incrementorProps +}) { value = parseInt(value); value = isNaN(value) ? '' : value; return ( @@ -37,12 +46,17 @@ export function Incrementor({ onChange, value, min = -Infinity, max = Infinity, {...incrementorProps} />
- onChange(value - 1)}> + onChange(value - 1)} aria-label={decrementLabel}> - = max} onClick={() => onChange(value + 1)}> + = max} + onClick={() => onChange(value + 1)} + aria-label={incrementLabel} + > diff --git a/website/src/repl/components/panel/Reference.jsx b/website/src/repl/components/panel/Reference.jsx index 452889de..b2bdd543 100644 --- a/website/src/repl/components/panel/Reference.jsx +++ b/website/src/repl/components/panel/Reference.jsx @@ -29,7 +29,7 @@ export function Reference() {
- +
{visibleFunctions.map((entry, i) => (