Theme: Fixing storybook theme (#33541)

This commit is contained in:
Torkel Ödegaard 2021-04-29 21:12:50 +02:00 committed by GitHub
parent 1cda7c5977
commit 33cfc3d9c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 13 deletions

View File

@ -66,8 +66,8 @@ export function createComponents(colors: ThemeColors, shadows: ThemeShadows): Th
background: input.background,
},
tooltip: {
background: colors.background.secondary,
text: colors.text.primary,
background: colors.mode === 'light' ? '#555' : colors.background.secondary,
text: colors.mode === 'light' ? '#FFF' : colors.text.primary,
},
dashboard: {
background: colors.background.canvas,

View File

@ -21,8 +21,8 @@ const createStorybookTheme = (theme: GrafanaThemeV2) => {
fontCode: theme.typography.fontFamilyMonospace,
// Text colors
textColor: theme.colors.primary.text,
textInverseColor: theme.colors.primary.contrastText,
textColor: theme.colors.text.primary,
textInverseColor: theme.colors.background.primary,
// Toolbar default and active colors
barTextColor: theme.colors.text.primary,

View File

@ -284,9 +284,9 @@ $tooltipArrowWidth: 5px;
$tooltipLinkColor: $link-color;
$graph-tooltip-bg: $dark-1;
$tooltipBackground: ${theme.colors.background.secondary};
$tooltipColor: ${theme.colors.text.primary};
$tooltipArrowColor: ${theme.colors.background.secondary};
$tooltipBackground: ${theme.components.tooltip.background};
$tooltipColor: ${theme.components.tooltip.text};
$tooltipArrowColor: ${theme.components.tooltip.background};
$tooltipBackgroundError: ${theme.colors.error.main};
$tooltipShadow: ${theme.shadows.z2};

View File

@ -276,9 +276,9 @@ $alert-warning-bg: ${theme.colors.warning.main};
$alert-info-bg: ${theme.colors.warning.main};
// Tooltips and popovers
$tooltipBackground: ${theme.colors.background.secondary};
$tooltipColor: ${theme.colors.text.primary};
$tooltipArrowColor: ${theme.colors.background.secondary};
$tooltipBackground: ${theme.components.tooltip.background};
$tooltipColor: ${theme.components.tooltip.text};
$tooltipArrowColor: ${theme.components.tooltip.background};
$tooltipBackgroundError: ${theme.colors.error.main};
$tooltipShadow: ${theme.shadows.z2};

View File

@ -278,9 +278,9 @@ $alert-warning-bg: #E56F00;
$alert-info-bg: #E56F00;
// Tooltips and popovers
$tooltipBackground: #F4F5F5;
$tooltipColor: rgba(36, 41, 46, 1);
$tooltipArrowColor: #F4F5F5;
$tooltipBackground: #555;
$tooltipColor: #FFF;
$tooltipArrowColor: #555;
$tooltipBackgroundError: #E0226E;
$tooltipShadow: 0px 4px 8px rgba(24, 26, 27, 0.2);