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
3 changes: 3 additions & 0 deletions packages/eui/changelogs/upcoming/9985.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Bug fixes**

- Fixed `EuiPopoverTitle` and `EuiPopoverFooter` backgrounds not following the popover panel's corner radius
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@ export const euiPopoverFooterStyles = (euiThemeContext: UseEuiTheme) => {
: euiTheme.components.popoverFooterBorderColor
}`
)}
/* Match the panel radius so footer backgrounds don't square off the corners.
Avoid overflow: hidden on the panel — it clips the filter shadow and arrow. */
${logicalCSS('border-bottom-left-radius', euiTheme.border.radius.medium)}
${logicalCSS('border-bottom-right-radius', euiTheme.border.radius.medium)}
`,
// If the popover's containing panel has padding applied,
// ensure the title expands to cover that padding via negative margins
// ensure the footer expands to cover that padding via negative margins
panelPaddingSizes: {
none: css``,
xs: css`
Expand Down
4 changes: 4 additions & 0 deletions packages/eui/src/components/popover/popover_title.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export const euiPopoverTitleStyles = (euiThemeContext: UseEuiTheme) => {
euiPopoverTitle: css`
${euiTitle(euiThemeContext, 'xxs')}
${logicalCSS('border-bottom', euiTheme.border.thin)}
/* Match the panel radius so title backgrounds don't square off the corners.
Avoid overflow: hidden on the panel — it clips the filter shadow and arrow. */
${logicalCSS('border-top-left-radius', euiTheme.border.radius.medium)}
${logicalCSS('border-top-right-radius', euiTheme.border.radius.medium)}
`,
// If the popover's containing panel has padding applied,
// ensure the title expands to cover that padding via negative margins
Expand Down