([
+ {
+ label: 'APM',
+ },
+ {
+ label: 'filebeat-*',
+ },
+ {
+ label: 'logs-*',
+ },
+ {
+ label: 'metrics-*',
+ },
+ ]);
+
+ return (
+
+ );
+};
diff --git a/src-docs/src/views/context_menu/context_menu_example.js b/src-docs/src/views/context_menu/context_menu_example.js
index 72860a84a2a..48e01a01c62 100644
--- a/src-docs/src/views/context_menu/context_menu_example.js
+++ b/src-docs/src/views/context_menu/context_menu_example.js
@@ -135,7 +135,7 @@ export const ContextMenuExample = {
title: 'Displaying custom elements',
source: [
{
- type: GuideSectionTypes.JS,
+ type: GuideSectionTypes.TSX,
code: contentPanelSource,
},
],
diff --git a/src/components/combo_box/__snapshots__/combo_box.test.tsx.snap b/src/components/combo_box/__snapshots__/combo_box.test.tsx.snap
index cd2c38130eb..5e37cec783a 100644
--- a/src/components/combo_box/__snapshots__/combo_box.test.tsx.snap
+++ b/src/components/combo_box/__snapshots__/combo_box.test.tsx.snap
@@ -458,7 +458,7 @@ exports[`props options list is rendered 1`] = `
{
const color = _color || euiTheme.colors.shadow;
- const array = [
- `0 .9px 4px ${getShadowColor(color, 0.08, colorMode)}`,
- `0 2.6px 8px ${getShadowColor(color, 0.06, colorMode)}`,
- `0 5.7px 12px ${getShadowColor(color, 0.05, colorMode)}`,
- `0 15px 15px ${getShadowColor(color, 0.04, colorMode)}`,
- ];
-
if (property === 'filter') {
- return `filter: ${array.reduce((v, i) => `${v} drop-shadow(${i})`, '')};`;
+ // Using only one drop-shadow filter instead of multiple is more performant & prevents Safari bugs
+ return `filter: drop-shadow(0 5.7px 9px ${getShadowColor(
+ color,
+ 0.2,
+ colorMode
+ )});`;
} else {
- return `box-shadow: ${array.map((v) => v)};`;
+ return `box-shadow:
+ 0 .9px 4px ${getShadowColor(color, 0.08, colorMode)},
+ 0 2.6px 8px ${getShadowColor(color, 0.06, colorMode)},
+ 0 5.7px 12px ${getShadowColor(color, 0.05, colorMode)},
+ 0 15px 15px ${getShadowColor(color, 0.04, colorMode)};`;
}
};
diff --git a/upcoming_changelogs/6604.md b/upcoming_changelogs/6604.md
new file mode 100644
index 00000000000..1077f334473
--- /dev/null
+++ b/upcoming_changelogs/6604.md
@@ -0,0 +1,3 @@
+**Bug fixes**
+
+- Fixed bug in `EuiPopover` where multiple filter `drop-shadow()` were causing inner shadows in Safari