From 2da55993e0e7f5a35c8d2b3132d4588c1189a149 Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Sat, 12 Oct 2019 09:16:33 +0200 Subject: [PATCH] Test of font-settings for correct image snapshots --- cypress/platform/e2e.html | 10 +++++----- src/diagrams/state/shapes.js | 2 -- src/themes/state.scss | 5 ++--- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/cypress/platform/e2e.html b/cypress/platform/e2e.html index b1587d6c1..94850e675 100644 --- a/cypress/platform/e2e.html +++ b/cypress/platform/e2e.html @@ -1,11 +1,11 @@ - - + diff --git a/src/diagrams/state/shapes.js b/src/diagrams/state/shapes.js index 017549e4b..0703074d2 100644 --- a/src/diagrams/state/shapes.js +++ b/src/diagrams/state/shapes.js @@ -404,8 +404,6 @@ export const drawEdge = function(elem, path, relation) { const g = elem.append('g').attr('class', 'stateLabel'); const label = g .append('text') - .attr('class', 'label') - .attr('fill', 'red') .attr('text-anchor', 'middle') .text(relation.title); const { x, y } = utils.calcLabelPosition(path.points); diff --git a/src/themes/state.scss b/src/themes/state.scss index 3cfecf649..96f83ca14 100644 --- a/src/themes/state.scss +++ b/src/themes/state.scss @@ -1,7 +1,6 @@ g.stateGroup text { fill: $nodeBorder; stroke: none; - font-family: 'trebuchet ms', verdana, arial; font-size: 10px; } @@ -38,7 +37,6 @@ g.stateGroup line { text { fill: black; stroke: none; - font-family: 'trebuchet ms', verdana, arial; font-size: 10px; } } @@ -50,7 +48,8 @@ g.stateGroup line { opacity: 0.5; } -.stateLabel .label { +.stateLabel text { fill: $labelColor; font-size: 10px; + font-weight: bold; }