Skip to content

Commit

Permalink
Ripple accessibility #5356
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Nov 23, 2023
1 parent 1f2f930 commit 19c0df7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
19 changes: 8 additions & 11 deletions components/doc/ripple/accessibilitydoc.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import { DevelopmentSection } from '@/components/doc/common/developmentsection';
import { DocSectionText } from '@/components/doc/common/docsectiontext';

export function AccessibilityDoc() {
return (
<DevelopmentSection>
<DocSectionText id="accessibility" label="Accessibility">
<h6>Screen Reader</h6>
<p>
Ripple element has the <i>aria-hidden</i> attribute as true so that it gets ignored by the screen readers.
</p>
<DocSectionText id="accessibility" label="Accessibility">
<h6>Screen Reader</h6>
<p>
Ripple element has the <i>aria-hidden</i> attribute as true so that it gets ignored by the screen readers.
</p>

<h6>Keyboard Support</h6>
<p>Component does not include any interactive elements.</p>
</DocSectionText>
</DevelopmentSection>
<h6>Keyboard Support</h6>
<p>Component does not include any interactive elements.</p>
</DocSectionText>
);
}
2 changes: 2 additions & 0 deletions components/lib/ripple/Ripple.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ export const Ripple = React.memo(

const rootProps = mergeProps(
{
'aria-hidden': true,
className: classNames(cx('root'))
},
RippleBase.getOtherProps(props),
ptm('root')
);

Expand Down

0 comments on commit 19c0df7

Please sign in to comment.