Skip to content

Commit 2086850

Browse files
committed
Fixed action buttons from affecting item height (#1913)
1 parent a69bd62 commit 2086850

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

packages/components/src/spectrum/listView/ListViewWrapper.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,37 @@
2828
}
2929

3030
.dh-list-view-wrapper-density-compact {
31+
// Ensure icons don't change the item height
3132
svg[class*='spectrum-Icon'] {
3233
height: var(--dh-list-view-item-icon-compact);
3334
width: var(--dh-list-view-item-icon-compact);
3435
}
36+
// Ensure action buttons don't change the item height
37+
button {
38+
height: var(--dh-list-view-item-icon-compact);
39+
}
3540
}
3641

3742
.dh-list-view-wrapper-density-regular {
43+
// Ensure icons don't change the item height
3844
svg[class*='spectrum-Icon'] {
3945
height: var(--dh-list-view-item-icon-regular);
4046
width: var(--dh-list-view-item-icon-regular);
4147
}
48+
// Ensure action buttons don't change the item height
49+
button {
50+
height: var(--dh-list-view-item-icon-regular);
51+
}
4252
}
4353

4454
.dh-list-view-wrapper-density-spacious {
55+
// Ensure icons don't change the item height
4556
svg[class*='spectrum-Icon'] {
4657
height: var(--dh-list-view-item-icon-spacious);
4758
width: var(--dh-list-view-item-icon-spacious);
4859
}
60+
// Ensure action buttons don't change the item height
61+
button {
62+
height: var(--dh-list-view-item-icon-spacious);
63+
}
4964
}

0 commit comments

Comments
 (0)