Skip to content

Commit 7e58ebf

Browse files
dlabrecqdtaylor113
authored andcommitted
fix(BulletChart): Cannot set text property for custom axis tic mark (#1029)
Fixes #1028
1 parent c5adf50 commit 7e58ebf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/patternfly-3/patternfly-react/src/components/Chart/BulletChart/BulletChartAxisTic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
44

5-
const BulletChartAxisTic = ({ className, vertical, value, ...props }) => {
5+
const BulletChartAxisTic = ({ className, text, vertical, value, ...props }) => {
66
const bulletChartAxisTicClass = classNames('bullet-chart-pf-axis-tic', className);
77

88
let ticStyle;
@@ -14,7 +14,7 @@ const BulletChartAxisTic = ({ className, vertical, value, ...props }) => {
1414

1515
return (
1616
<span className={bulletChartAxisTicClass} style={ticStyle}>
17-
{value}
17+
{text || value}
1818
</span>
1919
);
2020
};

packages/patternfly-3/patternfly-react/src/components/Chart/BulletChart/__snapshots__/BulletChart.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3137,7 +3137,7 @@ exports[`BulletChartAxisTic renders text properly 1`] = `
31373137
}
31383138
}
31393139
>
3140-
25
3140+
my-bullet-axis-tic-text
31413141
</span>
31423142
`;
31433143

0 commit comments

Comments
 (0)