diff --git a/packages/grafana-ui/src/components/OptionsUI/units.tsx b/packages/grafana-ui/src/components/OptionsUI/units.tsx index 1803d100445..6431f49de00 100644 --- a/packages/grafana-ui/src/components/OptionsUI/units.tsx +++ b/packages/grafana-ui/src/components/OptionsUI/units.tsx @@ -7,5 +7,5 @@ export const UnitValueEditor: React.FC { - return ; + return ; }; diff --git a/packages/grafana-ui/src/components/UnitPicker/UnitPicker.story.tsx b/packages/grafana-ui/src/components/UnitPicker/UnitPicker.story.tsx index 5301bc2041d..1afde539b07 100644 --- a/packages/grafana-ui/src/components/UnitPicker/UnitPicker.story.tsx +++ b/packages/grafana-ui/src/components/UnitPicker/UnitPicker.story.tsx @@ -13,5 +13,4 @@ export default { }, }; -export const simple = () => console.log(val)} />; -export const old = () => console.log(val)} />; +export const simple = () => console.log(val)} />; diff --git a/packages/grafana-ui/src/components/UnitPicker/UnitPicker.tsx b/packages/grafana-ui/src/components/UnitPicker/UnitPicker.tsx index 15be6a0cfd7..212fc58fec5 100644 --- a/packages/grafana-ui/src/components/UnitPicker/UnitPicker.tsx +++ b/packages/grafana-ui/src/components/UnitPicker/UnitPicker.tsx @@ -1,6 +1,4 @@ import React, { PureComponent } from 'react'; - -import { Select } from '../Forms/Legacy/Select/Select'; import { Cascader, CascaderOption } from '../Cascader/Cascader'; import { getValueFormats, SelectableValue } from '@grafana/data'; @@ -8,8 +6,6 @@ interface Props { onChange: (item?: string) => void; value?: string; width?: number; - /** Temporary flag that uses the new form styles. */ - useNewForms?: boolean; } function formatCreateLabel(input: string) { @@ -17,16 +13,12 @@ function formatCreateLabel(input: string) { } export class UnitPicker extends PureComponent { - static defaultProps = { - width: 12, - }; - onChange = (value: SelectableValue) => { this.props.onChange(value.value); }; render() { - const { value, width, useNewForms } = this.props; + const { value, width } = this.props; // Set the current selection let current: SelectableValue | undefined = undefined; @@ -46,16 +38,11 @@ export class UnitPicker extends PureComponent { } return sel; }); - if (useNewForms) { - return { - label: group.text, - value: group.text, - items: options, - }; - } + return { label: group.text, - options, + value: group.text, + items: options, }; }); @@ -64,8 +51,9 @@ export class UnitPicker extends PureComponent { current = { value, label: value }; } - return useNewForms ? ( + return ( { placeholder="Choose" onSelect={this.props.onChange} /> - ) : ( - + + -
- -
- -
-
+
+ + +
+
+ + +
-
-
- - -
-
- - -
-
+
+
+ + +
-
-
- - -
+
+ + +
+
+
-
- - -
- - +
+
Y-Axes
+ +
+ + +
+
-
-
X-Axis
- +
+
X-Axis
+ -
- -
- -
-
+
+ +
+ +
+
- -
- - -
+ +
+ + +
- -
- - -
- -
-
- - -
-
- - -
-
- -
-
-
Y-Axes
- -
- - -
-
- -
+ +
+ + +
+
+
+ + +
+
+ + +
+
+
diff --git a/public/app/plugins/panel/graph/module.ts b/public/app/plugins/panel/graph/module.ts index bfc13eec892..8cca3eeeb7d 100644 --- a/public/app/plugins/panel/graph/module.ts +++ b/public/app/plugins/panel/graph/module.ts @@ -167,7 +167,7 @@ class GraphCtrl extends MetricsPanelCtrl { onInitEditMode() { this.addEditorTab('Display', 'public/app/plugins/panel/graph/tab_display.html'); - this.addEditorTab('Series overides', 'public/app/plugins/panel/graph/tab_series_overrides.html'); + this.addEditorTab('Series overrides', 'public/app/plugins/panel/graph/tab_series_overrides.html'); this.addEditorTab('Axes', axesEditorComponent); this.addEditorTab('Legend', 'public/app/plugins/panel/graph/tab_legend.html'); this.addEditorTab('Thresholds', 'public/app/plugins/panel/graph/tab_thresholds.html'); diff --git a/public/app/plugins/panel/graph/tab_legend.html b/public/app/plugins/panel/graph/tab_legend.html index 52e66c80129..f7ff6f36b0e 100644 --- a/public/app/plugins/panel/graph/tab_legend.html +++ b/public/app/plugins/panel/graph/tab_legend.html @@ -117,7 +117,7 @@ @@ -125,7 +125,7 @@ diff --git a/public/sass/_variables.dark.generated.scss b/public/sass/_variables.dark.generated.scss index 079572540a6..3e3a4de4edd 100644 --- a/public/sass/_variables.dark.generated.scss +++ b/public/sass/_variables.dark.generated.scss @@ -161,7 +161,7 @@ $scrollbarBorder: black; // Tables // ------------------------- -$table-bg-accent: $dark-6; // for striping +$table-bg-accent: #191b1e; // for striping $table-border: $dark-6; // table and cell border $table-bg-odd: $dark-3; diff --git a/public/sass/_variables.light.generated.scss b/public/sass/_variables.light.generated.scss index cd5bd855419..3c52f207950 100644 --- a/public/sass/_variables.light.generated.scss +++ b/public/sass/_variables.light.generated.scss @@ -154,7 +154,7 @@ $scrollbarBorder: $gray-7; // Tables // ------------------------- -$table-bg-accent: $gray-5; // for striping +$table-bg-accent: #fafafa; $table-border: $gray-3; // table and cell border $table-bg-odd: $gray-6; diff --git a/public/sass/components/_panel_graph.scss b/public/sass/components/_panel_graph.scss index f2b0be9470d..680d75aa3a6 100644 --- a/public/sass/components/_panel_graph.scss +++ b/public/sass/components/_panel_graph.scss @@ -171,7 +171,7 @@ overflow: hidden; } - .graph-legend-series:nth-child(odd) { + .graph-legend-series:nth-child(even) { background: $table-bg-accent; }