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
1 change: 1 addition & 0 deletions packages/gamut/src/List/ListRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export const ListRow = forwardRef<HTMLLIElement, ListRowProps>(
c_sm: undefined,
}}
isOl={renderNumbering}
parentEl
role={role}
scrollable={scrollable}
tabIndex={tabIndex}
Expand Down
7 changes: 6 additions & 1 deletion packages/gamut/src/List/elements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ const rowStates = states({
display: 'flex',
flexDirection: { _: 'column', c_base: 'row', c_sm: 'column' },
},
/**
* Only the outermost element needs to inherit the background - otherwise it can stack with semitransparent bg colors and look off.
*/
parentEl: {
bg: 'inherit',
},
});

const interactiveState = states({
Expand Down Expand Up @@ -176,7 +182,6 @@ export interface RowProps
export const RowEl = styled('li', styledOptions<'li'>())<RowProps>(
css({
py: { _: 0, c_base: 8, c_sm: 0 },
bg: 'inherit',
width: 1,
}),
variance.compose(grid, flex),
Expand Down
Loading