Skip to content

Commit

Permalink
fix: fixed accessibility issue (#17588)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gururajj77 authored Oct 2, 2024
1 parent 9559937 commit 1622642
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/react/src/components/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,10 @@ const Dropdown = React.forwardRef(

// needs to be Capitalized for react to render it correctly
const ItemToElement = itemToElement;
const toggleButtonProps = getToggleButtonProps();
const toggleButtonProps = getToggleButtonProps({
'aria-label': ariaLabel || deprecatedAriaLabel,
});

const helper =
helperText && !isFluid ? (
<div id={helperId} className={helperClasses}>
Expand Down Expand Up @@ -523,7 +526,6 @@ const Dropdown = React.forwardRef(
<ListBox
onFocus={handleFocus}
onBlur={handleFocus}
aria-label={deprecatedAriaLabel || ariaLabel}
size={size}
className={className}
invalid={invalid}
Expand Down

0 comments on commit 1622642

Please sign in to comment.