Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

KIALI-1000 Use blue border for selected nodes despite health #465

Merged
merged 1 commit into from
Jun 28, 2018
Merged
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
20 changes: 15 additions & 5 deletions src/components/CytoscapeGraph/graphs/GraphStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ export class GraphStyles {
}
};

const nodeSelectedStyle = {
'background-color': PfColors.Blue50,
'border-color': PfColors.Blue200,
'border-width': '2px'
};

return [
{
selector: 'node',
Expand Down Expand Up @@ -74,11 +80,7 @@ export class GraphStyles {
},
{
selector: 'node:selected',
style: {
'background-color': PfColors.Blue50,
'border-color': PfColors.Blue200,
'border-width': '2px'
}
style: nodeSelectedStyle
},
{
selector: 'node[isRoot]',
Expand Down Expand Up @@ -203,6 +205,14 @@ export class GraphStyles {
'border-width': '3px'
}
},
{
selector: 'node:selected.' + DEGRADED.name,
style: nodeSelectedStyle
},
{
selector: 'node:selected.' + FAILURE.name,
style: nodeSelectedStyle
},
{
selector: 'edge.' + DimClass,
style: {
Expand Down