Skip to content

Commit

Permalink
fix(list-box): remove role from listbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandra Davila committed Jan 9, 2020
1 parent 67439c8 commit 194f9fa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
2 changes: 0 additions & 2 deletions packages/react/src/components/ListBox/ListBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ const ListBox = ({
<>
<div
{...rest}
role="listbox"
tabIndex="-1"
className={className}
ref={innerRef}
onKeyDown={handleOnKeyDown}
Expand Down
21 changes: 12 additions & 9 deletions packages/react/src/components/ListBox/ListBoxMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,18 @@ const { prefix } = settings;
* class into a single component. It is also being used to validate given
* `children` components.
*/
const ListBoxMenu = ({ children, id, ...rest }) => (
<div
id={`${id}__menu`}
className={`${prefix}--list-box__menu`}
role="listbox"
{...rest}>
{children}
</div>
);
const ListBoxMenu = ({ children, id, ...rest }) => {
console.log(rest);
return (
<div
id={`${id}__menu`}
className={`${prefix}--list-box__menu`}
role="listbox"
{...rest}>
{children}
</div>
);
};

ListBoxMenu.propTypes = {
/**
Expand Down

0 comments on commit 194f9fa

Please sign in to comment.