Skip to content

Commit

Permalink
Fix #5893: JumpToPageInput aria label (#5895)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Feb 5, 2024
1 parent 3de44d4 commit 4701002
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion components/lib/paginator/JumpToPageInput.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from 'react';
import { PrimeReactContext } from '../api/Api';
import { ariaLabel } from '../api/Locale';
import { useMergeProps } from '../hooks/Hooks';
import { InputNumber } from '../inputnumber/InputNumber';
import { ObjectUtils } from '../utils/Utils';
Expand Down Expand Up @@ -28,7 +29,7 @@ export const JumpToPageInput = React.memo((inProps) => {
onChange: onChange,
disabled: props.disabled,
className: 'p-paginator-page-input',
ariaLabel: ariaLabelValue,
'aria-label': ariaLabelValue,
element,
props
};
Expand Down
4 changes: 2 additions & 2 deletions components/lib/paginator/RowsPerPageDropdown.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as React from 'react';
import { PrimeReactContext, localeOption } from '../api/Api';
import { ariaLabel } from '../api/Locale';
import { Dropdown } from '../dropdown/Dropdown';
import { useMergeProps } from '../hooks/Hooks';
import { ObjectUtils } from '../utils/Utils';
import { RowsPerPageDropdownBase } from './PaginatorBase';
import { ariaLabel } from '../api/Locale';

export const RowsPerPageDropdown = React.memo((inProps) => {
const mergeProps = useMergeProps();
Expand All @@ -14,7 +14,7 @@ export const RowsPerPageDropdown = React.memo((inProps) => {
const hasOptions = props.options && props.options.length > 0;
const options = hasOptions ? props.options.map((opt) => ({ label: String(opt), value: opt })) : [];
const placeholderValue = localeOption('choose');
const ariaLabelValue = ariaLabel('rowsPerPage');
const ariaLabelValue = ariaLabel('jumpToPageDropdownLabel');
const element = hasOptions ? (
<>
<Dropdown
Expand Down

0 comments on commit 4701002

Please sign in to comment.