Skip to content

Commit 4289820

Browse files
committed
chore: legend and pie stroke
1 parent ba7dfc5 commit 4289820

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • packages/react-charts/src/victory/components/ChartTheme/themes

packages/react-charts/src/victory/components/ChartTheme/themes/base-theme.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ import chart_legend_gutter_Width from '@patternfly/react-tokens/dist/esm/chart_l
5757
import chart_legend_orientation from '@patternfly/react-tokens/dist/esm/chart_legend_orientation';
5858
import chart_legend_title_orientation from '@patternfly/react-tokens/dist/esm/chart_legend_title_orientation';
5959
import chart_legend_data_type from '@patternfly/react-tokens/dist/esm/chart_legend_data_type';
60+
import chart_legend_data_stroke_Color from '@patternfly/react-tokens/dist/esm/chart_legend_data_stroke_Color';
61+
import chart_legend_data_stroke_Width from '@patternfly/react-tokens/dist/esm/chart_legend_data_stroke_Width';
6062
import chart_legend_title_Padding from '@patternfly/react-tokens/dist/esm/chart_legend_title_Padding';
6163
import chart_line_data_Fill from '@patternfly/react-tokens/dist/esm/chart_line_data_Fill';
6264
import chart_line_data_Opacity from '@patternfly/react-tokens/dist/esm/chart_line_data_Opacity';
@@ -300,7 +302,9 @@ export const BaseTheme: ChartThemeDefinition = {
300302
titleOrientation: chart_legend_title_orientation.value,
301303
style: {
302304
data: {
303-
type: chart_legend_data_type.value
305+
type: chart_legend_data_type.value,
306+
stroke: chart_legend_data_stroke_Color.var,
307+
strokeWidth: chart_legend_data_stroke_Width.var
304308
},
305309
labels: LABEL_PROPS,
306310
title: {
@@ -328,7 +332,7 @@ export const BaseTheme: ChartThemeDefinition = {
328332
data: {
329333
padding: chart_pie_data_Padding.value,
330334
stroke: chart_pie_data_stroke_Color.var,
331-
strokeWidth: chart_pie_data_stroke_Width.value
335+
strokeWidth: chart_pie_data_stroke_Width.var
332336
},
333337
labels: {
334338
...LABEL_PROPS,

0 commit comments

Comments
 (0)