Skip to content

Commit

Permalink
#5429 for Divider
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Nov 28, 2023
1 parent 6c88a14 commit 9073951
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
19 changes: 8 additions & 11 deletions components/doc/divider/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">
<h3>Screen Reader</h3>
<p>
Divider uses a <i>separator</i> role with <i>aria-orientation</i> set to either "horizontal" or "vertical".
</p>
<DocSectionText id="accessibility" label="Accessibility">
<h3>Screen Reader</h3>
<p>
Divider uses a <i>separator</i> role with <i>aria-orientation</i> set to either "horizontal" or "vertical".
</p>

<h3>Keyboard Support</h3>
<p>Component does not include any interactive elements.</p>
</DocSectionText>
</DevelopmentSection>
<h3>Keyboard Support</h3>
<p>Component does not include any interactive elements.</p>
</DocSectionText>
);
}
1 change: 1 addition & 0 deletions components/lib/divider/Divider.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const Divider = React.forwardRef((inProps, ref) => {
ref: elementRef,
style: sx('root'),
className: cx('root', { horizontal, vertical }),
'aria-orientation': props.layout,
role: 'separator'
},
DividerBase.getOtherProps(props),
Expand Down

0 comments on commit 9073951

Please sign in to comment.