Skip to content

Commit a05c405

Browse files
committed
feat(plugin.legend): use the same active color as inactive but with a lower opacity
1 parent f88fdb5 commit a05c405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/plugin.legend.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ export default {
11481148
align: 'start',
11491149
grid: true,
11501150
activeColor: (ctx) => ctx.chart.options.color,
1151-
inactiveColor: (ctx) => new Color(ctx.chart.options.color).alpha(0.4).rgbString(),
1151+
inactiveColor: (ctx) => new Color(ctx.chart.options.plugins.legend.navigation.activeColor).alpha(0.4).rgbString(),
11521152
font: {
11531153
weight: 'bold',
11541154
size: 14

0 commit comments

Comments
 (0)