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,7 @@
{
"type": "patch",
"comment": "fix: ComboBox button is not aria-hidden by default",
"packageName": "@fluentui/react",
"email": "sarah.higley@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,6 @@ exports[`Pagination render comboBox Pagination correctly 1`] = `
value="1"
/>
<button
aria-hidden={true}
className=
ms-Button
ms-Button--icon
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/ComboBox/ComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ class ComboBoxInternal extends React.Component<IComboBoxInternalProps, IComboBox
required,
errorMessage,
buttonIconProps,
isButtonAriaHidden = true,
isButtonAriaHidden,
title,
placeholder: placeholderProp,
tabIndex,
Expand Down
7 changes: 3 additions & 4 deletions packages/react/src/components/ComboBox/ComboBox.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,9 @@ export interface IComboBoxProps
dropdownMaxWidth?: number;

/**
* Whether to hide the ComboBox's caret (expand) button element from screen readers. This is true
* (hidden) by default because all functionality is handled by the input element, and the arrow
* button is only meant to be decorative.
* @defaultvalue true
* Whether to hide the ComboBox's caret (expand) button element from screen readers. This is false
* (exposed to AT) by default because Android Talkback cannot otherwise expand the combobox.
* @defaultvalue false
*/
isButtonAriaHidden?: boolean;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ exports[`ComboBox Renders correctly 1`] = `
value="testValue"
/>
<button
aria-hidden="true"
class=
ms-Button
ms-Button--icon
Expand Down Expand Up @@ -533,7 +532,6 @@ exports[`ComboBox Renders correctly when open 1`] = `
value="Option 2"
/>
<button
aria-hidden="true"
class=
ms-Button
ms-Button--icon
Expand Down Expand Up @@ -1302,7 +1300,6 @@ exports[`ComboBox Renders correctly when opened in multi-select mode 1`] = `
value=""
/>
<button
aria-hidden="true"
class=
ms-Button
ms-Button--icon
Expand Down Expand Up @@ -2193,7 +2190,6 @@ exports[`ComboBox renders with a Keytip correctly 1`] = `
value=""
/>
<button
aria-hidden="true"
class=
ms-Button
ms-Button--icon
Expand Down