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 @@ -21,7 +21,8 @@ type ResolverColorNames =
| 'graphControlsBackground'
| 'resolverBackground'
| 'resolverEdge'
| 'resolverEdgeText';
| 'resolverEdgeText'
| 'resolverBreadcrumbBackground';

type ColorMap = Record<ResolverColorNames, string>;
interface NodeStyleConfig {
Expand Down Expand Up @@ -438,6 +439,7 @@ export const useResolverTheme = (): {
processBackingFill: `${theme.euiColorPrimary}${getThemedOption('0F', '1F')}`, // Add opacity 0F = 6% , 1F = 12%
resolverBackground: theme.euiColorEmptyShade,
resolverEdge: getThemedOption(theme.euiColorLightestShade, theme.euiColorLightShade),
resolverBreadcrumbBackground: theme.euiColorLightestShade,
resolverEdgeText: getThemedOption(theme.euiColorDarkShade, theme.euiColorFullShade),
triggerBackingFill: `${theme.euiColorDanger}${getThemedOption('0F', '1F')}`,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ const ThemedBreadcrumbs = styled(EuiBreadcrumbs)<{ background: string; text: str
background-color: ${(props) => props.background};
color: ${(props) => props.text};
padding: 1em;
border-radius: 5px;
}

& .euiBreadcrumbSeparator {
background: ${(props) => props.text};
}
`;

Expand All @@ -46,11 +51,11 @@ export const StyledBreadcrumbs = memo(function StyledBreadcrumbs({
truncate?: boolean;
}) {
const {
colorMap: { resolverEdge, resolverEdgeText },
colorMap: { resolverBreadcrumbBackground, resolverEdgeText },
} = useResolverTheme();
return (
<ThemedBreadcrumbs
background={resolverEdge}
background={resolverBreadcrumbBackground}
text={resolverEdgeText}
breadcrumbs={breadcrumbs}
truncate={truncate}
Expand Down