Skip to content

Commit

Permalink
Graph: Fixed series legend color for hidden series (#16438)
Browse files Browse the repository at this point in the history
* replaced colors for headingColor, link and linkDisabled with colors from grayscale, replaced colors for linkDisabled and linkHover with colors from grayscale, changed color for sha-modal-in-text to text-color-empahises

* fixed snapshot
  • Loading branch information
Ijin08 authored and torkelo committed Apr 8, 2019
1 parent 9630d81 commit 70dcb6a
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ exports[`Render should render with base threshold 1`] = `
"grayBlue": "#212327",
"greenBase": "#299c46",
"greenShade": "#23843b",
"headingColor": "#e3e3e3",
"headingColor": "#d8d9da",
"inputBlack": "#09090b",
"link": "#e3e3e3",
"linkDisabled": "#e3e3e3",
"link": "#d8d9da",
"linkDisabled": "#8e8e8e",
"linkExternal": "#33b5e5",
"linkHover": "#ffffff",
"online": "#299c46",
Expand Down Expand Up @@ -311,10 +311,10 @@ exports[`Render should render with base threshold 1`] = `
"grayBlue": "#212327",
"greenBase": "#299c46",
"greenShade": "#23843b",
"headingColor": "#e3e3e3",
"headingColor": "#d8d9da",
"inputBlack": "#09090b",
"link": "#e3e3e3",
"linkDisabled": "#e3e3e3",
"link": "#d8d9da",
"linkDisabled": "#8e8e8e",
"linkExternal": "#33b5e5",
"linkHover": "#ffffff",
"online": "#299c46",
Expand Down
7 changes: 3 additions & 4 deletions packages/grafana-ui/src/themes/dark.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import tinycolor from 'tinycolor2';
import defaultTheme from './default';
import { GrafanaTheme, GrafanaThemeType } from '../types/theme';

Expand Down Expand Up @@ -66,11 +65,11 @@ const darkTheme: GrafanaTheme = {
textWeak: basicColors.gray2,
textEmphasis: basicColors.gray5,
textFaint: basicColors.dark5,
link: new tinycolor(basicColors.white).darken(11).toString(),
linkDisabled: new tinycolor(basicColors.white).darken(11).toString(),
link: basicColors.gray4,
linkDisabled: basicColors.gray2,
linkHover: basicColors.white,
linkExternal: basicColors.blue,
headingColor: new tinycolor(basicColors.white).darken(11).toString(),
headingColor: basicColors.gray4,
},
background: {
dropdown: basicColors.dark3,
Expand Down
5 changes: 2 additions & 3 deletions packages/grafana-ui/src/themes/light.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import tinycolor from 'tinycolor2';
import defaultTheme from './default';
import { GrafanaTheme, GrafanaThemeType } from '../types/theme';

Expand Down Expand Up @@ -68,8 +67,8 @@ const lightTheme: GrafanaTheme = {
textEmphasis: basicColors.dark5,
textFaint: basicColors.dark4,
link: basicColors.gray1,
linkDisabled: new tinycolor(basicColors.gray1).lighten(30).toString(),
linkHover: new tinycolor(basicColors.gray1).darken(20).toString(),
linkDisabled: basicColors.gray3,
linkHover: basicColors.dark1,
linkExternal: basicColors.blueLight,
headingColor: basicColors.gray1,
},
Expand Down
6 changes: 3 additions & 3 deletions public/sass/_variables.dark.generated.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ $edit-gradient: linear-gradient(180deg, $dark-2 50%, $input-black);

// Links
// -------------------------
$link-color: #e3e3e3;
$link-color-disabled: #e3e3e3;
$link-color: #d8d9da;
$link-color-disabled: #8e8e8e;
$link-hover-color: #ffffff;
$external-link-color: #33b5e5;

// Typography
// -------------------------
$headings-color: #e3e3e3;
$headings-color: #d8d9da;
$abbr-border-color: $gray-2 !default;
$text-muted: $text-color-weak;

Expand Down
4 changes: 2 additions & 2 deletions public/sass/_variables.light.generated.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ $edit-gradient: linear-gradient(-60deg, $gray-7, #f5f6f9 70%, $gray-7 98%);
// Links
// -------------------------
$link-color: #52545c;
$link-color-disabled: #9ea0a9;
$link-hover-color: #222326;
$link-color-disabled: #acb6bf;
$link-hover-color: #1e2028;
$external-link-color: #5794f2;

// Typography
Expand Down
2 changes: 1 addition & 1 deletion public/sass/components/_modals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
.share-modal-info-text {
margin-top: 5px;
strong {
color: $headings-color;
color: $text-color-emphasis;
font-weight: 500;
}
}
Expand Down

0 comments on commit 70dcb6a

Please sign in to comment.