Jelajahi Sumber

Make small swatches react to theme changes

Dominik Prokop 7 tahun lalu
induk
melakukan
511895c079

+ 1 - 0
packages/grafana-ui/src/components/ColorPicker/NamedColorsGroup.tsx

@@ -95,6 +95,7 @@ const NamedColorsGroup: FunctionComponent<NamedColorsGroupProps> = ({
                   isSelected={color.name === selectedColor}
                   isSelected={color.name === selectedColor}
                   color={getColorForTheme(color, theme)}
                   color={getColorForTheme(color, theme)}
                   onClick={() => onColorSelect(color)}
                   onClick={() => onColorSelect(color)}
+                  theme={theme}
                 />
                 />
               </div>
               </div>
             )
             )