Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PF4: subTitleComponent is not used in ChartDonut #2486

Closed
bond95 opened this issue Jul 9, 2019 · 0 comments · Fixed by #2488
Closed

PF4: subTitleComponent is not used in ChartDonut #2486

bond95 opened this issue Jul 9, 2019 · 0 comments · Fixed by #2488
Assignees
Labels
PF4 React issues for the PF4 core effort
Milestone

Comments

@bond95
Copy link
Contributor

bond95 commented Jul 9, 2019

ChartDonut component in function getSubTitle using prop titleComponent instead of subTitleComponent:

const getSubTitle = () => {
if (!subTitle || subTitlePosition === ChartDonutSubTitlePosition.center) {
return null;
}
const subTitleProps = titleComponent.props ? titleComponent.props : {};
return React.cloneElement(titleComponent, {
style: ChartDonutStyles.label.subTitle,

bond95 added a commit to bond95/patternfly-react that referenced this issue Jul 9, 2019
…tle` by `subTitleComponent`.

Previously `ChartDonut` component for building `subTitle` used prop `titleComponent`, while prop
`subTitleComponent` was unused. So in this PR `titleComponent` in `getSubtitle` was replaced by
`subTitleComponent`.

fix patternfly#2486
@tlabaj tlabaj added the PF4 React issues for the PF4 core effort label Jul 10, 2019
tlabaj pushed a commit that referenced this issue Jul 10, 2019
…tle` by `subTitleComponent`. (#2488)

Previously `ChartDonut` component for building `subTitle` used prop `titleComponent`, while prop
`subTitleComponent` was unused. So in this PR `titleComponent` in `getSubtitle` was replaced by
`subTitleComponent`.

fix #2486
@rachael-phillips rachael-phillips added this to the Bluebird milestone Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PF4 React issues for the PF4 core effort
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants