Skip to content

Commit 6c20d13

Browse files
fix(charts): restore title attribute on LegendToggle button
1 parent e2bf797 commit 6c20d13

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/platform/plugins/shared/charts/public/static/components/legend_toggle.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ const LegendToggleComponent = ({ onClick, showLegend, legendPosition }: LegendTo
6868
aria-expanded={showLegend}
6969
isSelected={showLegend}
7070
data-test-subj="vislibToggleLegend"
71+
title={i18n.translate('charts.legend.toggleLegendButtonTitle', {
72+
defaultMessage: 'Toggle legend',
73+
})}
7174
/>
7275
);
7376
};

0 commit comments

Comments
 (0)