Skip to content

Commit

Permalink
chore(topology): fix broken element colors
Browse files Browse the repository at this point in the history
  • Loading branch information
tthvo committed Jul 25, 2024
1 parent bb154cd commit dce54eb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/Topology/GraphView/CustomGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const renderGroupIcon = (width: number, height: number): React.ReactNode

return (
<>
<circle cx={cx} cy={cy} r={contentSize / 2} fill="var(--pf-global--palette--white)" />
<circle cx={cx} cy={cy} r={contentSize / 2} fill="var(--pf-v5-global--palette--white)" />
<image
x={cx - mainContentSize / 2}
y={cy - mainContentSize / 2}
Expand Down
4 changes: 2 additions & 2 deletions src/app/Topology/GraphView/CustomNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const renderNodeIcon = (graphic: string, _data: TargetNode, element: Node

return (
<>
<circle cx={cx} cy={cy} r={contentSize / 2} fill="var(--pf-global--palette--white)" />
<circle cx={cx} cy={cy} r={contentSize / 2} fill="var(--pf-v5-global--palette--white)" />
{useAlt ? (
<g transform={`translate(${trueCx}, ${trueCy})`}>
<ContainerNodeIcon width={mainContentSize} height={mainContentSize} />
Expand Down Expand Up @@ -127,7 +127,7 @@ const CustomNode: React.FC<CustomNodeProps> = ({
scaleNode={(hover || contextMenuOpen) && detailsLevel !== ScaleDetailsLevel.high}
badge={showBadge ? nodeTypeToAbbr(data.nodeType) : undefined}
badgeColor={NODE_BADGE_COLOR}
badgeClassName={'topology__node-badge'}
badgeClassName={css('topology__node-badge')}
nodeStatus={showStatus ? nodeStatus : undefined}
showStatusBackground={!hover && detailsLevel === ScaleDetailsLevel.low}
truncateLength={RESOURCE_NAME_TRUNCATE_LENGTH}
Expand Down
2 changes: 1 addition & 1 deletion src/app/Topology/GraphView/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const DEFAULT_GROUP_PADDINGS = [

export const RESOURCE_NAME_TRUNCATE_LENGTH = 20;

export const NODE_BADGE_COLOR = 'var(--pf-global--palette--blue-500)';
export const NODE_BADGE_COLOR = 'var(--pf-v5-global--palette--blue-500)';

export const NODE_ICON_PADDING = 5;

Expand Down
2 changes: 1 addition & 1 deletion src/app/Topology/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ Below CSS rules only apply to Topology components
}

.topology__node-badge text {
fill: var(--pf-global--palette--white);
fill: var(--pf-v5-global--palette--white);
font-weight: 700;
}

Expand Down

0 comments on commit dce54eb

Please sign in to comment.