Skip to content

Commit

Permalink
fix: update border class for selected node status (#3556)
Browse files Browse the repository at this point in the history
Update the border class for the selected node status in the NodeStatus component to "border-2 border-node-selected hover:shadow-node". This change improves the visual representation of the selected node status.
  • Loading branch information
anovazzi1 authored Aug 26, 2024
1 parent 6cdc915 commit df16cfd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default function NodeStatus({

const getBaseBorderClass = (selected) => {
let className = selected
? "border border-ring hover:shadow-node"
? "border border-2 border-node-selected hover:shadow-node"
: "border hover:shadow-node";
let frozenClass = selected ? "border-ring-frozen" : "border-frozen";
return frozen ? frozenClass : className;
Expand Down
2 changes: 2 additions & 0 deletions src/frontend/src/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

@layer base {
:root {
--node-selected: 243 75% 59%;
--background: 0 0% 100%; /* hsl(0 0% 100%) */
--foreground: 222.2 47.4% 11.2%; /* hsl(222 47% 11%) */
--muted: 210 40% 98%; /* hsl(210 40% 98%) */
Expand Down Expand Up @@ -71,6 +72,7 @@
}

.dark {
--node-selected: 234 89% 74%;
--background: 224 28% 7.5%; /* hsl(224 10% 7.5%) */
--foreground: 213 31% 80%; /* hsl(213 31% 91%) */
--ice: #60a5fa;
Expand Down
1 change: 1 addition & 0 deletions src/frontend/tailwind.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ const config = {
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
"node-selected": "hsl(var(--node-selected))",
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
primary: {
Expand Down

0 comments on commit df16cfd

Please sign in to comment.