Skip to content

Commit

Permalink
chore: Update storefront & storybook - Update typography guide (#921)
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes authored Oct 12, 2023
1 parent a4168f0 commit a9bac34
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .storybook/manager-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
/>

<style>
* {
font-feature-settings: 'cv05' 1 !important;
}
html {
font-family: 'Inter', sans-serif;
}
Expand Down
3 changes: 3 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
/>

<style>
* {
font-feature-settings: 'cv05' 1 !important;
}
html {
font-family: 'Inter', sans-serif;
}
Expand Down
1 change: 1 addition & 0 deletions storefront/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ body {

* {
box-sizing: border-box;
font-feature-settings: 'cv05' 1 !important;
}

h1,
Expand Down
3 changes: 3 additions & 0 deletions storefront/pages/grunnleggende/designelementer/typografi.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ For hosting kan Altinn CDN benyttes:

```css
font-family: 'Inter', sans-serif;
font-feature-settings: 'cv05' 1 !important; /* Enable lowercase l with tail */
```

Use `!important` for `font-feature-settings` because our typography tokens & components use the [font](https://developer.mozilla.org/en-US/docs/Web/CSS/font) shorthand which resets this to its initial values.

## Tekststørrelse

Tekststørrelse-variablene blir angitt i **rem**. Denne verdien er relativ til `html`-elementet sin `font-size`,
Expand Down

0 comments on commit a9bac34

Please sign in to comment.