Test of font-settings for correct image snapshots

This commit is contained in:
Knut Sveidqvist 2019-10-12 09:16:33 +02:00
parent a258eda035
commit 2da55993e0
3 changed files with 7 additions and 10 deletions

View File

@ -1,11 +1,11 @@
<html>
<head>
<script src="/e2e.js"></script>
<lnk
href="https://fonts.googleapis.com/css?family=Montserrat&display=swap"
rel="stylesheet"
/>
<style></style>
<style>
mermaid, svg {
font-family: 'Courier New', Courier, monospace;
}
</style>
</head>
<body>
<script src="./mermaid.js"></script>

View File

@ -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);

View File

@ -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;
}