diff --git a/src/components/VisualizationOptions/Options/Subtitle.js b/src/components/VisualizationOptions/Options/Subtitle.js index 486c68b26b..9b421c8815 100644 --- a/src/components/VisualizationOptions/Options/Subtitle.js +++ b/src/components/VisualizationOptions/Options/Subtitle.js @@ -3,11 +3,12 @@ import PropTypes from 'prop-types' import React from 'react' import { TextBaseOption } from './TextBaseOption.js' -const Subtitle = ({ dataTest }) => ( +const Subtitle = ({ dataTest, label }) => ( ( /> ) +Subtitle.defaultProps = { + dataTest: 'visualization-option-subtitle', +} + Subtitle.propTypes = { dataTest: PropTypes.string, + label: PropTypes.string, } export default Subtitle diff --git a/src/modules/options/pivotTableConfig.js b/src/modules/options/pivotTableConfig.js index b5888dfc95..e84328a989 100644 --- a/src/modules/options/pivotTableConfig.js +++ b/src/modules/options/pivotTableConfig.js @@ -83,7 +83,7 @@ export default ({ key: 'style-section-1', content: React.Children.toArray([ , - <Subtitle dataTest="pivot-table-subtitle" />, + <Subtitle label={i18n.t('Table subtitle')} />, <DisplayDensity />, <FontSize />, <DigitGroupSeparator />,