Skip to content

Commit 240eb29

Browse files
fix(button-group): revert aria attribute changes
1 parent 722db8d commit 240eb29

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/components/button-group/ButtonGroup.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,10 @@ export interface ButtonGroupProps {
99
className?: string;
1010
/** Boolean describing whether the button is disabled or not */
1111
isDisabled?: boolean;
12-
/** ARIA role for the button group */
13-
role?: string;
14-
/** ARIA label for the button group */
15-
'aria-label'?: string;
1612
}
1713

18-
const ButtonGroup = ({ children, className = '', isDisabled, role, 'aria-label': ariaLabel }: ButtonGroupProps) => (
19-
<div className={`btn-group ${className} ${isDisabled ? 'is-disabled' : ''}`} role={role} aria-label={ariaLabel}>
20-
{children}
21-
</div>
14+
const ButtonGroup = ({ children, className = '', isDisabled }: ButtonGroupProps) => (
15+
<div className={`btn-group ${className} ${isDisabled ? 'is-disabled' : ''}`}>{children}</div>
2216
);
2317

2418
export default ButtonGroup;

0 commit comments

Comments
 (0)