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
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ export const KibanaExample: Story = {
{ title: 'Notifications', href: '#' },
],
},
{ title: 'Add data', href: '#' },
]),
]}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,17 @@ export const euiCollapsibleNavAccordionStyles = (
}
`,
isSubItem: css`
&.euiAccordion-isOpen {
${logicalCSS('margin-bottom', euiTheme.size.m)}
/* Adds extra spacing to the bottom of the accordion while open. Notes:
1. This uses a pseudo element instead of margin-bottom on the accordion,
because otherwise the height calculations the accordion uses will be off
and cause buggy animation behavior
2. Setting a margin or padding bottom on .euiAccordion__children does not
seem to work correctly and gets collapsed instead of stacking
*/
&.euiAccordion-isOpen .euiAccordion__children::after {
content: '';
display: block;
${logicalCSS('height', euiTheme.size.m)}
}
`,
// Arrow element
Expand Down