fix: fix invalid CSS fill-opacity value

Fix an invalid value for the CSS `fill-opacity` value.

Percentage values for `fill-opacity` are only supported in the SVG 2.0
draft, so according to [MDN][1]:

> it is not widely supported yet, […] as a consequence, it is best
> practices [sic] to set opacity with a value in the range `[0-1]`.

[1]: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-opacity
This commit is contained in:
Alois Klink 2023-04-13 05:58:47 +01:00
parent 616d370a51
commit 9cb7a4a3f5

View File

@ -16,7 +16,7 @@ const getStyles = (options) => `
.reqBox {
fill: ${options.requirementBackground};
fill-opacity: 100%;
fill-opacity: 1.0;
stroke: ${options.requirementBorderColor};
stroke-width: ${options.requirementBorderSize};
}
@ -26,7 +26,7 @@ const getStyles = (options) => `
}
.reqLabelBox {
fill: ${options.relationLabelBackground};
fill-opacity: 100%;
fill-opacity: 1.0;
}
.req-title-line {