Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "office-ui-fabric-react",
"comment": "Updates aria-owns on BasePicker (and snapshot tests) so its only set when suggestions are rendered",
"type": "patch"
}
],
"packageName": "office-ui-fabric-react",
"email": "rebeba@microsoft.com"
}
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export class BasePicker<T, P extends IBasePickerProps<T>> extends BaseComponent<
onInputValueChange={ this.onInputChange }
suggestedDisplayValue={ suggestedDisplayValue }
aria-activedescendant={ activeDescendant }
aria-owns='suggestion-list'
aria-owns={ this.state.suggestionsVisible ? 'suggestion-list' : undefined }
aria-expanded={ !!this.state.suggestionsVisible }
aria-haspopup='true'
autoCapitalize='off'
Expand Down Expand Up @@ -745,8 +745,8 @@ export class BasePickerListBelow<T, P extends IBasePickerProps<T>> extends BaseP
onBlur={ this.onInputBlur }
onInputValueChange={ this.onInputChange }
suggestedDisplayValue={ suggestedDisplayValue }
aria-activedescendant={ 'sug-' + this.suggestionStore.currentIndex }
aria-owns='suggestion-list'
aria-activedescendant={ this.state.suggestionsVisible ? 'sug-' + this.suggestionStore.currentIndex : undefined }
aria-owns={ this.state.suggestionsVisible ? 'suggestion-list' : undefined }
aria-expanded={ !!this.state.suggestionsVisible }
aria-haspopup='true'
autoCapitalize='off'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ exports[`Pickers BasePicker renders BasePicker correctly 1`] = `
aria-controls="selected-suggestion-alert"
aria-expanded={false}
aria-haspopup="true"
aria-owns="suggestion-list"
aria-owns={undefined}
autoCapitalize="off"
autoComplete="off"
className="ms-BasePicker-input"
Expand Down Expand Up @@ -113,7 +113,7 @@ exports[`Pickers TagPicker renders TagPicker correctly 1`] = `
aria-controls="selected-suggestion-alert"
aria-expanded={false}
aria-haspopup="true"
aria-owns="suggestion-list"
aria-owns={undefined}
autoCapitalize="off"
autoComplete="off"
className="ms-BasePicker-input"
Expand Down