mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
#5237 Fix for label opacity
This commit is contained in:
parent
ee6ae6a47a
commit
fc78ee0fc5
@ -95,6 +95,9 @@ const getStyles = (options: FlowChartStyleOptions) =>
|
||||
|
||||
.edgeLabel {
|
||||
background-color: ${options.edgeLabelBackground};
|
||||
p {
|
||||
background-color: ${options.edgeLabelBackground};
|
||||
}
|
||||
rect {
|
||||
opacity: 0.5;
|
||||
background-color: ${options.edgeLabelBackground};
|
||||
@ -106,7 +109,7 @@ const getStyles = (options: FlowChartStyleOptions) =>
|
||||
/* For html labels only */
|
||||
.labelBkg {
|
||||
background-color: ${fade(options.edgeLabelBackground, 0.5)};
|
||||
// background-color:
|
||||
// background-color:
|
||||
}
|
||||
|
||||
.cluster rect {
|
||||
|
@ -70,6 +70,9 @@ g.stateGroup line {
|
||||
}
|
||||
.edgeLabel {
|
||||
background-color: ${options.edgeLabelBackground};
|
||||
p {
|
||||
background-color: ${options.edgeLabelBackground};
|
||||
}
|
||||
rect {
|
||||
opacity: 0.5;
|
||||
background-color: ${options.edgeLabelBackground};
|
||||
|
@ -34,7 +34,7 @@ class Theme {
|
||||
this.arrowheadColor = '#333333';
|
||||
this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif';
|
||||
this.fontSize = '16px';
|
||||
this.labelBackground = 'rgba(232,232,232,0.8)';
|
||||
this.labelBackground = 'rgba(232,232,232, 0.8)';
|
||||
this.textColor = '#333';
|
||||
this.THEME_COLOR_LIMIT = 12;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user