From 2d7a2891058194db0946ce7bb4cd56f0b4cb22c7 Mon Sep 17 00:00:00 2001 From: "Ashley Engelund (weedySeaDragon @ github)" Date: Thu, 22 Sep 2022 11:55:01 -0700 Subject: [PATCH] ER styles: replace hardcoded values with new options properties --- src/diagrams/er/styles.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/diagrams/er/styles.js b/src/diagrams/er/styles.js index 60596ac9d..1ac964602 100644 --- a/src/diagrams/er/styles.js +++ b/src/diagrams/er/styles.js @@ -6,15 +6,19 @@ const getStyles = (options) => } .attributeBoxOdd { - fill: #ffffff; + fill: ${options.attributeBackgroundColorOdd}; stroke: ${options.nodeBorder}; } .attributeBoxEven { - fill: #f2f2f2; + fill: ${options.attributeBackgroundColorEven}; stroke: ${options.nodeBorder}; } - + + .attributeBoxText { + color: ${options.attributeTextColor}; + } + .relationshipLabelBox { fill: ${options.tertiaryColor}; opacity: 0.7; @@ -24,9 +28,9 @@ const getStyles = (options) => } } - .relationshipLine { - stroke: ${options.lineColor}; - } + .relationshipLine { + stroke: ${options.lineColor}; + } `; export default getStyles;