Skip to content

Commit

Permalink
fix: cursor pointer on GenericList
Browse files Browse the repository at this point in the history
  • Loading branch information
mrCherry97 committed Jul 18, 2024
1 parent 2efefa9 commit ab5ac2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shared/components/GenericList/GenericList.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,9 @@ export const GenericList = ({
style={disableMargin ? {} : spacing.sapUiSmallMargin}
>
<Table
className={`ui5-generic-list ${hasDetailsView ? 'cursor-pointer' : ''}`}
className={`ui5-generic-list ${
hasDetailsView && filteredEntries.length ? 'cursor-pointer' : ''
}`}
onRowClick={e => {
if (!hasDetailsView) return;
handleActionIfFormOpen(
Expand Down
3 changes: 3 additions & 0 deletions src/shared/components/GenericList/GenericList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
color: var(--sapList_TextColor);
}
}
.cursor-pointer {
cursor: pointer;
}

0 comments on commit ab5ac2f

Please sign in to comment.