Skip to content

Commit

Permalink
chore(DataList): update tests (#9672)
Browse files Browse the repository at this point in the history
* add spread prop test, update test

* chore(DataList): update tests

* fix merge error

* break out into separate files, pr feedback

* updates

* fix some example ids

* minor test updates

* revert action change
  • Loading branch information
kmcfaul authored Nov 15, 2023
1 parent 4f123b1 commit 2a70043
Show file tree
Hide file tree
Showing 21 changed files with 713 additions and 634 deletions.
2 changes: 2 additions & 0 deletions packages/react-core/src/components/DataList/DataList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class DataList extends React.Component<DataListProps> {
const {
className,
children,
'aria-label': ariaLabel,
onSelectDataListItem,
selectedDataListItemId,
isCompact,
Expand Down Expand Up @@ -106,6 +107,7 @@ class DataList extends React.Component<DataListProps> {
)}
style={props.style}
role="list"
aria-label={ariaLabel}
{...props}
ref={this.ref}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export const DataListAction: React.FunctionComponent<DataListActionProps> = ({
id,
'aria-label': ariaLabel,
'aria-labelledby': ariaLabelledBy,
/* eslint-disable @typescript-eslint/no-unused-vars */
isPlainButtonAction,
/* eslint-enable @typescript-eslint/no-unused-vars */
...props
}: DataListActionProps) => (
<div className={css(styles.dataListItemAction, formatBreakpointMods(visibility, styles), className)} {...props}>
Expand Down
Loading

0 comments on commit 2a70043

Please sign in to comment.