From d52a52d19ec9caacedc87d3b578b788ce75b9361 Mon Sep 17 00:00:00 2001 From: "REDMOND\\chiechan" Date: Fri, 16 Feb 2018 11:55:45 -0800 Subject: [PATCH 1/3] added support for aria-posinset and aria-setsize --- .../src/components/Checkbox/Checkbox.tsx | 4 ++++ .../src/components/Checkbox/Checkbox.types.ts | 10 ++++++++++ .../src/components/SpinButton/SpinButton.tsx | 6 +++++- .../src/components/SpinButton/SpinButton.types.ts | 14 ++++++++++++-- 4 files changed, 31 insertions(+), 3 deletions(-) diff --git a/packages/office-ui-fabric-react/src/components/Checkbox/Checkbox.tsx b/packages/office-ui-fabric-react/src/components/Checkbox/Checkbox.tsx index 1062305e0dccb..8a398c119e228 100644 --- a/packages/office-ui-fabric-react/src/components/Checkbox/Checkbox.tsx +++ b/packages/office-ui-fabric-react/src/components/Checkbox/Checkbox.tsx @@ -83,6 +83,8 @@ export class Checkbox extends BaseComponent impl styles: customStyles, onRenderLabel = this._onRenderLabel, checkmarkIconProps, + ariaPositionInSet, + ariaSetSize } = this.props; const isChecked = checked === undefined ? this.state.isChecked : checked; @@ -118,6 +120,8 @@ export class Checkbox extends BaseComponent impl aria-label={ ariaLabel } aria-labelledby={ ariaLabelledBy } aria-describedby={ ariaDescribedBy } + aria-posinset={ ariaPositionInSet } + aria-setsize={ ariaSetSize } >