Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/imodel-browser-react",
"comment": "Fix: Cursor pointer on clickable rows in table",
"type": "patch"
}
],
"packageName": "@itwin/imodel-browser-react"
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}

.row-cursor {
div[role="rowgroup"] div[role="row"] {
div[role="row"] {
cursor: pointer;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ export const ITwinGrid = ({
) : (
<ThemeProvider theme="inherit">
<Table<{ [P in keyof ITwinFull]: ITwinFull[P] }>
className={onThumbnailClick ? "row-cursor" : ""}
columns={columns}
data={iTwins}
onRowClick={onRowClick}
Expand All @@ -264,6 +263,7 @@ export const ITwinGrid = ({
onBottomReached={fetchMore}
autoResetFilters={false}
autoResetSortBy={false}
bodyProps={{ className: onThumbnailClick ? "row-cursor" : "" }}
/>
</ThemeProvider>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
.rowCursor {
div[role="rowgroup"] div[role="row"] {
div[role="row"] {
cursor: pointer;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ export const IModelGrid = ({
) : (
<ThemeProvider theme="inherit">
<Table<{ [P in keyof IModelFull]: IModelFull[P] }>
className={onThumbnailClick ? styles.rowCursor : ""}
columns={columns}
data={iModels}
onRowClick={onRowClick}
Expand Down Expand Up @@ -283,6 +282,9 @@ export const IModelGrid = ({
onBottomReached={fetchMore}
autoResetFilters={false}
autoResetSortBy={false}
bodyProps={{
className: onThumbnailClick ? styles.rowCursor : "",
}}
/>
</ThemeProvider>
)}
Expand Down