Skip to content

Commit

Permalink
fix: cursor pointer on GenericList (#3085)
Browse files Browse the repository at this point in the history
* fix: cursor pointer on GenericList

* chore: space
  • Loading branch information
mrCherry97 authored Jul 22, 2024
1 parent 1e466ba commit 02b2e20
Show file tree
Hide file tree
Showing 2 changed files with 7 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
4 changes: 4 additions & 0 deletions src/shared/components/GenericList/GenericList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
color: var(--sapList_TextColor);
}
}

.cursor-pointer {
cursor: pointer;
}

0 comments on commit 02b2e20

Please sign in to comment.