Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Updated review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
PK106552 committed Oct 20, 2023
1 parent 3d48277 commit f8e50c8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const propTypes = {
/**
* String that used in menu item for aria-describedby that labels the group for accessibility.
*/
GroupId: PropTypes.string,
groupId: PropTypes.string,
};

const defaultProps = {
Expand Down Expand Up @@ -79,7 +79,7 @@ class CollapsibleMenuViewItemGroup extends React.Component {
isMultiSelect,
selectedKeys,
ariaLabel,
GroupId,
groupId,
...customProps
} = this.props;

Expand All @@ -95,7 +95,7 @@ class CollapsibleMenuViewItemGroup extends React.Component {
});
return (
<li role="none">
<div {...customProps} role="group" id={GroupId}>
<div {...customProps} role="group" id={groupId} aria-label={ariaLabel}>
{cloneChildren}
</div>
</li>
Expand All @@ -104,7 +104,7 @@ class CollapsibleMenuViewItemGroup extends React.Component {
if (onChange) {
return (
<li role="none">
<Menu.ItemGroup {...customProps} onChange={this.handleMenuOnChange} id={GroupId}>
<Menu.ItemGroup {...customProps} onChange={this.handleMenuOnChange} id={groupId} aria-label={ariaLabel}>
{children}
</Menu.ItemGroup>
</li>
Expand All @@ -125,7 +125,7 @@ class CollapsibleMenuViewItemGroup extends React.Component {
]);

return (
<ButtonGroup {...customProps} isMultiSelect={isMultiSelect} onChange={onChange} className={buttonGroupClassNames} selectedKeys={selectedKeys}>
<ButtonGroup {...customProps} isMultiSelect={isMultiSelect} onChange={onChange} className={buttonGroupClassNames} selectedKeys={selectedKeys} aria-label={ariaLabel}>
{children}
</ButtonGroup>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class AlwaysCollapsedMenuItemsDemo extends React.Component {
]}
/>
<CollapsibleMenuView.Divider key="divider1" />
<CollapsibleMenuView.ItemGroup aria-label="View Type Single Selection" id="view-type-single-select" key="ViewTypeSelection" selectedKeys={[this.state.displayType]} onChange={this.handleDisplayTypeChange}>
<CollapsibleMenuView.ItemGroup ariaLabel="View Type Single Selection" groupId="view-type-single-select" key="ViewTypeSelection" selectedKeys={[this.state.displayType]} onChange={this.handleDisplayTypeChange}>
<CollapsibleMenuView.Item
icon={<IconTable />}
text="Table View"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class CollapsibleMenuViewDemo extends React.Component {
]}
/>
<CollapsibleMenuView.Divider key="Divider2" />
<CollapsibleMenuView.ItemGroup aria-label="View Type Single Selection" GroupId="view-type-single-select" key="ViewTypeSelection" selectedKeys={[this.state.displayType]} onChange={this.handleDisplayTypeChange}>
<CollapsibleMenuView.ItemGroup ariaLabel="View Type Single Selection" groupId="view-type-single-select" key="ViewTypeSelection" selectedKeys={[this.state.displayType]} onChange={this.handleDisplayTypeChange}>
<CollapsibleMenuView.Item
icon={<IconTable />}
text="Table View"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class CollapsibleMenuViewStartAligned extends React.Component {
]}
/>
<CollapsibleMenuView.Divider key="Divider2" />
<CollapsibleMenuView.ItemGroup aria-label="View Type Single Selection" id="view-type-single-select" key="ViewTypeSelection" selectedKeys={[this.state.displayType]} onChange={this.handleDisplayTypeChange}>
<CollapsibleMenuView.ItemGroup ariaLabel="View Type Single Selection" groupId="view-type-single-select" key="ViewTypeSelection" selectedKeys={[this.state.displayType]} onChange={this.handleDisplayTypeChange}>
<CollapsibleMenuView.Item
icon={<IconTable />}
text="Table View"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class CollapsibleMenuViewWithMultiSelectItems extends React.Component {
]}
/>
<CollapsibleMenuView.Divider key="Divider2" />
<CollapsibleMenuView.ItemGroup aria-label="View Type Multi Selection" GroupId="view-type-multi-select" key="ViewTypeSelection" isMultiSelect selectedKeys={this.state.selectedKeys} onChange={this.handleDisplayTypeChange}>
<CollapsibleMenuView.ItemGroup ariaLabel="View Type Multi Selection" groupId="view-type-multi-select" key="ViewTypeSelection" isMultiSelect selectedKeys={this.state.selectedKeys} onChange={this.handleDisplayTypeChange}>
<CollapsibleMenuView.Item
icon={<IconTable />}
text="Table View"
Expand Down

0 comments on commit f8e50c8

Please sign in to comment.