Skip to content

Commit

Permalink
fix: v8 ComboBox button is no longer aria-hidden by default (#26050)
Browse files Browse the repository at this point in the history
  • Loading branch information
smhigley authored Dec 22, 2022
1 parent 68c1cd9 commit 36af377
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
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": "[email protected]",
"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

0 comments on commit 36af377

Please sign in to comment.