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 Sep 18, 2023
1 parent 03dd9cc commit 62ae185
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 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 @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion public/app/features/dashboard/containers/DashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export interface DashboardPageRouteParams {
type?: string;
slug?: string;
accessToken?: string;
version?: number;
}

export type DashboardPageRouteSearchParams = {
Expand Down Expand Up @@ -250,7 +251,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 @@ -52,7 +52,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 @@ -41,7 +41,7 @@ export interface InitDashboardArgs {
accessToken?: string;
routeName?: string;
fixUrl: boolean;
keybindingSrv: KeybindingSrv;
keybindingSrv?: KeybindingSrv;
}

async function fetchDashboard(
Expand Down

0 comments on commit 62ae185

Please sign in to comment.