Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove loading default font #1078

Merged
merged 4 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {Theme} from '../src';
import {GlobalThemeController} from './theme/utils/global-theme-controller';

import '../styles/styles.scss';
import '@gravity-ui/uikit/styles/fonts.css';

const withContextProvider: Decorator = (Story, context) => {
const theme = context.globals.theme;
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ To use mixins and constructor style variables when creating custom blocks, add i
@import '~@gravity-ui/page-constructor/styles/styles.scss';
```

To use default font, add import in your file:

```css
@import '~@gravity-ui/page-constructor/styles/fonts.scss';
```

### Loadable blocks

It's sometimes necessary that a block renders itself based on data to be loaded. In this case, loadable blocks are used.
Expand Down
1 change: 1 addition & 0 deletions playwright/playwright/index.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@import '../../styles/styles.scss';
@import '../../styles/fonts.scss';
@import '../../styles/storybook/index.scss';
1 change: 1 addition & 0 deletions src/widget/styles.scss
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@import '../../styles/styles.scss';
@import '../../styles/fonts.scss';
1 change: 1 addition & 0 deletions styles/fonts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import '@gravity-ui/uikit/styles/fonts.css';
1 change: 0 additions & 1 deletion styles/styles.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '@gravity-ui/uikit/styles/fonts.css';
@import '~@gravity-ui/uikit/styles/styles.css';
@import './mixins.scss';
@import './variables.scss';
Expand Down
Loading