diff --git a/packages/grafana-data/src/themes/createTypography.ts b/packages/grafana-data/src/themes/createTypography.ts index cebba1421c2f9..787ee21b89671 100644 --- a/packages/grafana-data/src/themes/createTypography.ts +++ b/packages/grafana-data/src/themes/createTypography.ts @@ -63,8 +63,8 @@ export interface ThemeTypographyInput { htmlFontSize?: number; } -const defaultFontFamily = 'Nunito, Roboto, Arial'; //'"Roboto", "Helvetica", "Arial", sans-serif'; -const defaultFontFamilyMonospace = "'Nunito Mono', monospace"; +const defaultFontFamily = '"Source Sans Pro", Nunito, Roboto, Arial'; //'"Roboto", "Helvetica", "Arial", sans-serif'; +const defaultFontFamilyMonospace = "'Nunito Mono', 'Roboto Mono', monospace"; // "'Roboto Mono', monospace"; export function createTypography(colors: ThemeColors, typographyInput: ThemeTypographyInput = {}): ThemeTypography { const { diff --git a/public/app/features/dashboard/containers/DashboardPage.tsx b/public/app/features/dashboard/containers/DashboardPage.tsx index 9c5b113a681f0..0559787c3fff5 100644 --- a/public/app/features/dashboard/containers/DashboardPage.tsx +++ b/public/app/features/dashboard/containers/DashboardPage.tsx @@ -60,6 +60,7 @@ export interface DashboardPageRouteParams { type?: string; slug?: string; accessToken?: string; + version?: number; } export type DashboardPageRouteSearchParams = { @@ -250,7 +251,7 @@ export class UnthemedDashboardPage extends PureComponent { routeName: this.props.route.routeName, fixUrl: !isPublic && !FNDashboard, accessToken: match.params.accessToken, - keybindingSrv: this.context.keybindings, + keybindingSrv: this.context?.keybindings, }); // small delay to start live updates diff --git a/public/app/features/dashboard/containers/SoloPanelPage.tsx b/public/app/features/dashboard/containers/SoloPanelPage.tsx index 04fc483129a5f..aa4a1673e36e6 100644 --- a/public/app/features/dashboard/containers/SoloPanelPage.tsx +++ b/public/app/features/dashboard/containers/SoloPanelPage.tsx @@ -52,7 +52,7 @@ export class SoloPanelPage extends Component { urlType: match.params.type, routeName: route.routeName, fixUrl: false, - keybindingSrv: this.context.keybindings, + keybindingSrv: this.context?.keybindings, }); } diff --git a/public/app/features/dashboard/state/initDashboard.ts b/public/app/features/dashboard/state/initDashboard.ts index 77219541c60d5..0b71cb9d9e32f 100644 --- a/public/app/features/dashboard/state/initDashboard.ts +++ b/public/app/features/dashboard/state/initDashboard.ts @@ -41,7 +41,7 @@ export interface InitDashboardArgs { accessToken?: string; routeName?: string; fixUrl: boolean; - keybindingSrv: KeybindingSrv; + keybindingSrv?: KeybindingSrv; } async function fetchDashboard(