mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
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:
parent
616d370a51
commit
9cb7a4a3f5
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user