Skip to content

Commit

Permalink
Font update, bug fixes (#85)
Browse files Browse the repository at this point in the history
* Fix grafana bugs

* Update grafana font to source sans pro

* Revert code format change
  • Loading branch information
Spikatrix authored and GurinderRawala committed Aug 27, 2024
1 parent 3daf0e9 commit 2b72716
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/grafana-data/src/themes/createTypography.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,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 {
Expand Down
11 changes: 9 additions & 2 deletions public/app/features/dashboard/containers/DashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ import { explicitlyControlledMigrationPanels, autoMigrateAngular } from '../stat
import { cleanUpDashboardAndVariables } from '../state/actions';
import { initDashboard } from '../state/initDashboard';

import { DashboardPageRouteParams, DashboardPageRouteSearchParams } from './types';
import { DashboardPageRouteSearchParams } from './types';
export interface DashboardPageRouteParams {
uid?: string;
type?: string;
slug?: string;
accessToken?: string;
version?: number;
}

import 'react-grid-layout/css/styles.css';
import 'react-resizable/css/styles.css';
Expand Down Expand Up @@ -207,7 +214,7 @@ export class UnthemedDashboardPage extends PureComponent<Props, State> {
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
Expand Down
2 changes: 1 addition & 1 deletion public/app/features/dashboard/containers/SoloPanelPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class SoloPanelPage extends Component<Props, State> {
urlType: match.params.type,
routeName: route.routeName,
fixUrl: false,
keybindingSrv: this.context.keybindings,
keybindingSrv: this.context?.keybindings,
});
}

Expand Down
2 changes: 1 addition & 1 deletion public/app/features/dashboard/state/initDashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface InitDashboardArgs {
accessToken?: string;
routeName?: string;
fixUrl: boolean;
keybindingSrv: KeybindingSrv;
keybindingSrv?: KeybindingSrv;
}

async function fetchDashboard(
Expand Down

0 comments on commit 2b72716

Please sign in to comment.