Skip to content

Commit d71fb4a

Browse files
authored
fix: Make ListViewWrapper icon CSS target only icons in rows (#2517)
For `ui.resolve`, we're going to use the `renderEmptyState` prop to show the error message. This has an icon and was being shrunk to the row icon height. Instead this should make the CSS more specific to only affect icons within rows
1 parent 901db5e commit d71fb4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
--dh-list-view-item-icon-spacious: 30px;
2828
}
2929

30-
.dh-list-view-wrapper-density-compact {
30+
.dh-list-view-wrapper-density-compact [class*='spectrum-ListView-row'] {
3131
// Ensure icons don't change the item height
3232
svg[class*='spectrum-Icon'] {
3333
height: var(--dh-list-view-item-icon-compact);
@@ -39,7 +39,7 @@
3939
}
4040
}
4141

42-
.dh-list-view-wrapper-density-regular {
42+
.dh-list-view-wrapper-density-regular [class*='spectrum-ListView-row'] {
4343
// Ensure icons don't change the item height
4444
svg[class*='spectrum-Icon'] {
4545
height: var(--dh-list-view-item-icon-regular);
@@ -51,7 +51,7 @@
5151
}
5252
}
5353

54-
.dh-list-view-wrapper-density-spacious {
54+
.dh-list-view-wrapper-density-spacious [class*='spectrum-ListView-row'] {
5555
// Ensure icons don't change the item height
5656
svg[class*='spectrum-Icon'] {
5757
height: var(--dh-list-view-item-icon-spacious);

0 commit comments

Comments
 (0)