Skip to content

Commit c8e9feb

Browse files
committed
[bugfix] Fix issue where style popup has the wrong tooltips for color palettes
1 parent 5b2c391 commit c8e9feb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/ColorPaletteHeader/ColorPaletteHeader.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ColorPaletteHeader extends React.PureComponent {
3030
const { style: { TextColor }, colorPalette } = this.props;
3131

3232
return (
33-
<Tooltip content="option.annotationColor.text">
33+
<Tooltip content="option.annotationColor.TextColor">
3434
<div
3535
className={colorPalette === 'TextColor' ? 'text selected' : 'text'}
3636
style={{ color: TextColor.toHexString() }}
@@ -63,7 +63,7 @@ class ColorPaletteHeader extends React.PureComponent {
6363
};
6464

6565
return (
66-
<Tooltip content="option.annotationColor.border">
66+
<Tooltip content="option.annotationColor.StrokeColor">
6767
<div
6868
className={colorPalette === 'StrokeColor' ? 'border selected' : 'border'}
6969
onClick={() => this.setColorPalette('StrokeColor')}
@@ -84,7 +84,7 @@ class ColorPaletteHeader extends React.PureComponent {
8484
const isTransparency = FillColor.toHexString() === null;
8585

8686
return (
87-
<Tooltip content="option.annotationColor.fill">
87+
<Tooltip content="option.annotationColor.FillColor">
8888
<div
8989
className={colorPalette === 'FillColor' ? 'fill selected' : 'fill'}
9090
onClick={() => this.setColorPalette('FillColor')}

0 commit comments

Comments
 (0)