Skip to content

Commit 4376dc8

Browse files
fix(kanban): adjust elevation and boxShadow for KanbanCard and KanbanColumn components
1 parent 51435f7 commit 4376dc8

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# [Releases](https://github.com/Tracktor/design-system/releases)
22

3-
## v4.31.0
3+
## v4.31.1
44

5-
### Feat
6-
- Update subtitle rendering in KanbanCard and adjust related types
5+
### Fix
6+
- Adjust elevation and boxShadow for KanbanCard and KanbanColumn components

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@tracktor/design-system",
33
"description": "Tracktor Design System",
44
"sideEffects": false,
5-
"version": "4.31.0",
5+
"version": "4.31.1",
66
"license": "ISC",
77
"type": "module",
88
"types": "./dist/src/main.d.ts",

src/components/DataDisplay/Kanban/components/KanbanCard.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,18 +205,17 @@ const KanbanCard = memo(({ item, activeItemId, gutterSize, onClickItem, variant
205205
<Box component="div" style={{ paddingLeft: gutterSize, paddingRight: gutterSize }}>
206206
<Card
207207
variant="elevation"
208-
elevation={palette.mode === "dark" ? 5 : 0}
209208
onClick={() => onClickItem?.(id)}
210209
sx={{
211210
".grabbing &": {
212211
cursor: "grabbing",
213212
pointerEvents: "none",
214213
},
215214
"&:hover": {
216-
boxShadow: 8,
215+
boxShadow: 4,
217216
},
218217
background: "background.paper",
219-
border: `1px solid ${active ? palette.action.active : palette.mode === "dark" ? palette.divider : "transparent"}`,
218+
border: `1px solid ${active ? palette.action.active : "transparent"}`,
220219
boxShadow: "0px 0 8px 0 rgba(0, 0, 0, 0.10), 0px 1px 1px 0px rgba(0, 0, 0, 0.04), 0px 1px 3px 0px rgba(0, 0, 0, 0.03)",
221220
cursor: "pointer",
222221
flexShrink: 0,

src/components/DataDisplay/Kanban/components/KanbanColumn.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ const KanbanColumn = memo(
124124
{isFetching && <CircularProgress size={16} sx={{ color: "text.secondary" }} />}
125125
</Stack>
126126
<Card
127+
variant="elevation"
128+
elevation={0}
127129
sx={{
128130
".kanban-virtual-list": {
129131
"&::-webkit-scrollbar": { display: "none" },
@@ -139,7 +141,6 @@ const KanbanColumn = memo(
139141
height: 0,
140142
width: listWidth,
141143
}}
142-
elevation={0}
143144
>
144145
<Stack height="100%">
145146
{/* Content */}

0 commit comments

Comments
 (0)