Skip to content

Commit 1ddd1e4

Browse files
committed
update sr prop name
1 parent 7f27aaa commit 1ddd1e4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/module/patternfly-docs/content/extensions/data-view/examples/Table/DataViewTableResizableColumnsExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export const ResizableColumnsExample: FunctionComponent = () => {
121121
resizableProps: {
122122
isResizable: true,
123123
onResize,
124-
screenreaderText: screenReaderText
124+
screenReaderText
125125
}
126126
},
127127
'Pull requests',

packages/module/src/DataViewTh/DataViewTh.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface DataViewThResizableProps {
3030
/** Aria label for the resize button */
3131
resizeButtonAriaLabel?: string;
3232
/** Screenreader text for the column */
33-
screenreaderText?: string;
33+
screenReaderText?: string;
3434
}
3535
export interface DataViewThProps {
3636
/** Cell content */
@@ -59,7 +59,7 @@ export const DataViewTh: FC<DataViewThProps> = ({
5959
const shiftIncrement = resizableProps?.shiftIncrement || 25;
6060
const resizeButtonAriaLabel = resizableProps?.resizeButtonAriaLabel || `Resize ${content}`;
6161
const onResize = resizableProps?.onResize || undefined;
62-
const screenreaderText = resizableProps?.screenreaderText || `Column ${width.toFixed(0)} pixels`;
62+
const screenReaderText = resizableProps?.screenReaderText || `Column ${width.toFixed(0)} pixels`;
6363

6464
const resizeButtonRef = useRef<HTMLButtonElement>(null);
6565
const setInitialVals = useRef(true);
@@ -272,7 +272,7 @@ export const DataViewTh: FC<DataViewThProps> = ({
272272
)}
273273
{isResizable && (
274274
<div aria-live="polite" className="pf-v6-screen-reader">
275-
{screenreaderText}
275+
{screenReaderText}
276276
</div>
277277
)}
278278
</Th>

0 commit comments

Comments
 (0)