Skip to content

Commit 8a0094f

Browse files
committed
add aria-hidden
1 parent 732c29c commit 8a0094f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

uui/components/typography/TextPlaceholder.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const TextPlaceholder: React.FunctionComponent<PropsWithChildren<ITextPla
2525
}, [props.wordsCount]);
2626

2727
return (
28-
<div aria-busy={ true } className={ cx(css.root, 'uui-text-placeholder') } { ...props.rawProps }>
28+
<div aria-busy={ true } aria-hidden="true" className={ cx(css.root, 'uui-text-placeholder') } { ...props.rawProps }>
2929
{text.map((it: string, index: number) => (
3030
<span
3131
key={ index }

uui/components/typography/__tests__/__snapshots__/TextPlaceholder.test.tsx.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ exports[`TextPlaceholder should be rendered correctly 1`] = `
44
<DocumentFragment>
55
<div
66
aria-busy="true"
7+
aria-hidden="true"
78
class="root uui-text-placeholder"
89
>
910
<span
@@ -19,6 +20,7 @@ exports[`TextPlaceholder should be rendered correctly 2`] = `
1920
<DocumentFragment>
2021
<div
2122
aria-busy="true"
23+
aria-hidden="true"
2224
class="root uui-text-placeholder"
2325
>
2426
<span

0 commit comments

Comments
 (0)