mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Theme: Fixing storybook theme (#33541)
This commit is contained in:
parent
1cda7c5977
commit
33cfc3d9c2
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user