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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"@elastic/ecs": "^8.11.5",
"@elastic/elasticsearch": "^8.18.2",
"@elastic/ems-client": "8.6.3",
"@elastic/eui": "101.4.0-amsterdam.0",
"@elastic/eui": "102.0.0-amsterdam.0",
"@elastic/filesaver": "1.1.2",
"@elastic/node-crypto": "^1.2.3",
"@elastic/numeral": "^2.5.1",
Expand Down
2 changes: 1 addition & 1 deletion src/dev/license_checker/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const LICENSE_OVERRIDES = {
'jsts@1.6.2': ['Eclipse Distribution License - v 1.0'], // cf. https://github.com/bjornharrtell/jsts
'@mapbox/jsonlint-lines-primitives@2.0.2': ['MIT'], // license in readme https://github.com/tmcw/jsonlint
'@elastic/ems-client@8.6.3': ['Elastic License 2.0'],
'@elastic/eui@101.4.0-amsterdam.0': ['Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0'],
'@elastic/eui@102.0.0-amsterdam.0': ['Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0'],
'language-subtag-registry@0.3.21': ['CC-BY-4.0'], // retired ODC‑By license https://github.com/mattcg/language-subtag-registry
'buffers@0.1.1': ['MIT'], // license in importing module https://www.npmjs.com/package/binary
'@bufbuild/protobuf@1.2.1': ['Apache-2.0'], // license (Apache-2.0 AND BSD-3-Clause)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@ const InContextMenuActions = (props: LayerActionsProps) => {
setPopover(false);
}
}, [isPopoverOpen]);
// `neutral` and `risk` variants belong to `severity` so they're not
// available in `euiTheme.colors` directly
const getColorFromTheme = useCallback(
(color: LayerAction['color']) =>
color === 'risk' || color === 'neutral'
? euiTheme.colors.severity[color]
: euiTheme.colors[color!],
[euiTheme]
);

return (
<EuiOutsideClickDetector onOutsideClick={closePopover}>
Expand Down Expand Up @@ -144,9 +153,9 @@ const InContextMenuActions = (props: LayerActionsProps) => {
{...(i.color
? {
css: css`
color: ${euiTheme.colors[i.color]};
color: ${getColorFromTheme(i.color)};
&:hover {
text-decoration-color: ${euiTheme.colors[i.color]} !important;
text-decoration-color: ${getColorFromTheme(i.color)} !important;
}
`,
size: 's', // need to be explicit here as css prop will disable the default small size
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export function RootCauseAnalysisPanel({
}) {
const theme = useTheme();

const isSeverityColor = color === 'risk' || color === 'neutral';
const panelClassName =
color &&
color !== 'transparent' &&
Expand All @@ -28,7 +29,10 @@ export function RootCauseAnalysisPanel({
color !== 'highlighted'
? css`
border: 1px solid;
border-color: ${rgba(theme.colors[color], 0.25)};
border-color: ${rgba(
isSeverityColor ? theme.colors.severity[color] : theme.colors[color],
0.25
)};
`
: undefined;

Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2157,21 +2157,21 @@
resolved "https://registry.yarnpkg.com/@elastic/eslint-plugin-eui/-/eslint-plugin-eui-0.0.2.tgz#56b9ef03984a05cc213772ae3713ea8ef47b0314"
integrity sha512-IoxURM5zraoQ7C8f+mJb9HYSENiZGgRVcG4tLQxE61yHNNRDXtGDWTZh8N1KIHcsqN1CEPETjuzBXkJYF/fDiQ==

"@elastic/eui-theme-common@0.2.0":
version "0.2.0"
resolved "https://registry.yarnpkg.com/@elastic/eui-theme-common/-/eui-theme-common-0.2.0.tgz#570a988f58c24076c6f867475e70930769f3cff5"
integrity sha512-g2n38Uk4G9UqQU/wim+ZKWusWtO1bdudvDy/7+sdCYaxtgbINT5hhMHoU9M49D+7FJSsPuHn7gVfdYKMN9bTdQ==
"@elastic/eui-theme-common@1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@elastic/eui-theme-common/-/eui-theme-common-1.0.0.tgz#c5e7b7597c4ebe71fc533b18458415a14a93794d"
integrity sha512-9+P21npVm05OmFr0OPkA5DSdts9teOo/OEotbJFAVkqBLkNf+Eevv6q89B8eQ6r383RnVwTl7vBzb6M9PnULJg==
dependencies:
"@types/lodash" "^4.14.202"
chroma-js "^2.4.2"
lodash "^4.17.21"

"@elastic/eui@101.4.0-amsterdam.0":
version "101.4.0-amsterdam.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-101.4.0-amsterdam.0.tgz#27360ebeb71e86052f99f5e88814b197ae97558e"
integrity sha512-zhWSRQYFFk2lm6mycBnpX8SJOeNzKjYJ7XwTv9RFfRUR6MGe/GfUIjHGCAg52NDNUTcYPlLuPhJKcNtAMasEOQ==
"@elastic/eui@102.0.0-amsterdam.0":
version "102.0.0-amsterdam.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-102.0.0-amsterdam.0.tgz#9fc738d18a4b148e97ac1b4d7ddfb311314d1b97"
integrity sha512-C6ZS83SyQ83d5sSqaZYf+nrJeRIU5WPoAWAAr5UIqloJGBk1nuMNY8wH12PT9GiqdXFUdf6ezSsQvYCqHrWWWw==
dependencies:
"@elastic/eui-theme-common" "0.2.0"
"@elastic/eui-theme-common" "1.0.0"
"@elastic/prismjs-esql" "^1.1.0"
"@hello-pangea/dnd" "^16.6.0"
"@types/lodash" "^4.14.202"
Expand Down