Skip to content

Commit 2e3d467

Browse files
authored
chore(data-modeling): remove extra margin from data modeling accordion sections when closed (#7185)
1 parent d7a1c27 commit 2e3d467

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/compass-data-modeling/src/components/drawer/drawer-section-components.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ const darkModeContainerStyles = css({
2626
const accordionTitleStyles = css({
2727
width: '100%',
2828
textTransform: 'uppercase',
29-
marginBottom: spacing[400],
29+
// Only when accordion is expanded and content is rendered
30+
'&:not(:last-child)': {
31+
marginBottom: spacing[400],
32+
},
3033
});
3134

3235
const buttonStyles = css({

0 commit comments

Comments
 (0)