Skip to content

Commit

Permalink
add: added stylings for buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
terrencejihoonjung committed Aug 12, 2024
1 parent a25b7f9 commit 89c99a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/DSPlaygrounds/DynamicArrayPG.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,14 @@ function DynamicArrayPG() {
.append("rect")
.attr("width", cellWidth - 1)
.attr("height", cellHeight)
.attr("fill", "#e2e8f0")
.attr("stroke", "#4a5568");
.attr("fill", "primary")
.attr("stroke", "primary");

cells
.append("text")
.attr("x", cellWidth / 2)
.attr("y", cellHeight / 2)
.attr("fill", "white")
.attr("text-anchor", "middle")
.attr("dominant-baseline", "central")
.text((d) => d);
Expand All @@ -70,7 +71,7 @@ function DynamicArrayPG() {
.attr("width", cellWidth - 1)
.attr("height", cellHeight)
.attr("fill", "none")
.attr("stroke", "#a0aec0")
.attr("stroke", "black")
.attr("stroke-dasharray", "5,5");
};

Expand Down

0 comments on commit 89c99a8

Please sign in to comment.