Skip to content

Commit 8cbdbe2

Browse files
authored
Merge pull request #477 from IgniteUI/mkirova/fix-aria-labelledby
Update prop ariaLabelledby to the native aria-labelledby.
2 parents affee5d + 09590b6 commit 8cbdbe2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

samples/inputs/checkbox/label/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default class CheckboxLabel extends React.Component<any, any> {
1818
<div className="sample">
1919
<div className="wrapper">
2020
<span id="checkbox-label">Label</span>
21-
<IgrCheckbox ariaLabelledby="checkbox-label" labelPosition="before"></IgrCheckbox>
21+
<IgrCheckbox aria-labelledby="checkbox-label" labelPosition="before"></IgrCheckbox>
2222
</div>
2323
</div>
2424
);

samples/inputs/switches/label/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default class SwitchLabel extends React.Component<any, any> {
1515
public render(): JSX.Element {
1616
return (
1717
<div className="sample">
18-
<IgrSwitch ariaLabelledby="switchLabel" labelPosition="Before" ><span id="switch-label">Label</span></IgrSwitch>
18+
<IgrSwitch aria-labelledby="switchLabel" labelPosition="Before" ><span id="switch-label">Label</span></IgrSwitch>
1919
</div>
2020
);
2121
}

0 commit comments

Comments
 (0)