Skip to content

Commit

Permalink
fix(chip): font size (#2595)
Browse files Browse the repository at this point in the history
bug first sent in on Slack
  • Loading branch information
Barsnes authored and unekinn committed Oct 10, 2024
1 parent 01e39e5 commit 75f222a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/mean-snails-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@digdir/designsystemet-css": patch
---

chip: Fix wrong font sizes
6 changes: 5 additions & 1 deletion packages/css/chip.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
--dsc-chip-padding: 0 var(--ds-spacing-3);

@composes ds-focus from './base/base.css';
@composes ds-paragraph-short from './base/base.css';
@composes ds-body-text--short-sm from './base/base.css';

align-items: center;
background: var(--dsc-chip-background);
Expand Down Expand Up @@ -58,12 +58,16 @@
--dsc-chip-height: var(--ds-sizing-7);
--dsc-chip-icon-size: var(--ds-sizing-5);
--dsc-chip-input-size: var(--ds-spacing-4);

@composes ds-body-text--short-xs from './base/base.css';
}

&[data-size='lg'] {
--dsc-chip-height: var(--ds-sizing-9);
--dsc-chip-icon-size: var(--ds-sizing-7);
--dsc-chip-input-size: var(--ds-spacing-6);

@composes ds-body-text--short-md from './base/base.css';
}

& > input {
Expand Down

0 comments on commit 75f222a

Please sign in to comment.