Skip to content

Commit

Permalink
remove shields
Browse files Browse the repository at this point in the history
  • Loading branch information
mimarz committed Jan 3, 2025
1 parent ffe1978 commit c9102f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,13 @@ export default ({ children }) => (
content={children}
data={{
title: 'Størrelser og avstander',
date: '29. Februar 2024',
date: '3. Januar 2025',
icon: <RulerIcon />,
color: 'blue',
}}
/>
);

Størrelser (`size`) brukes til å definere bredde og høyde på elementer.

Avstand (`size`) brukes til å sette marging og padding. Settet med avstander som er definert i tokens gir oss mulighet til å definere verdier for _"Auto Layout"_ i Figma og sikrer dermed konsistent design på tvers av grensesnitt.

<TokenList
type='dimension'
Expand Down
18 changes: 1 addition & 17 deletions apps/storefront/components/Tokens/TokenList/TokenList.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
'use client';
import {
Dropdown,
Heading,
Link,
Paragraph,
Table,
} from '@digdir/designsystemet-react';
import { Dropdown, Heading, Table } from '@digdir/designsystemet-react';
import { ClipboardButton } from '@repo/components';
import cl from 'clsx/lite';
import type { HTMLAttributes } from 'react';
Expand Down Expand Up @@ -221,16 +215,6 @@ const TokenList = ({

return (
<div className={classes.tokens}>
<div className={classes.package} data-unstyled>
<Link href='https://www.npmjs.com/package/@digdir/designsystemet-theme'>
<img
src='https://img.shields.io/npm/v/@digdir/designsystemet-theme?label=latest%20release&color=0051be'
alt='Latest release on npm'
className={classes.npmShield}
/>
</Link>
<Paragraph data-size='sm'>@digdir/designsystemet-theme</Paragraph>
</div>
{(showThemePicker || showModeSwitcher) && (
<div className={classes.toggleGroup}>
{showModeSwitcher && (
Expand Down

0 comments on commit c9102f3

Please sign in to comment.