Skip to content

Commit

Permalink
style(button): use weight 500 (#2618)
Browse files Browse the repository at this point in the history
part of #2617

---------

Co-authored-by: Eirik Backer <[email protected]>
  • Loading branch information
Barsnes and eirikbacker authored Oct 15, 2024
1 parent db678d4 commit 220c105
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/orange-months-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@digdir/designsystemet-css": patch
---

Button: Use font-weight `--ds-font-weight-medium`
3 changes: 3 additions & 0 deletions packages/css/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
padding: var(--dsc-button-padding-block) var(--dsc-button-padding-inline);
text-align: inherit;
text-decoration: none;
font-weight: var(--ds-font-weight-medium);

& svg,
& img {
Expand All @@ -49,6 +50,7 @@
--dsc-button-size: var(--ds-sizing-10);

@composes ds-body-text--short-sm from './base/base.css';
font-weight: var(--ds-font-weight-medium);
}

&[data-size='lg'] {
Expand All @@ -57,6 +59,7 @@
--dsc-button-size: var(--ds-sizing-14);

@composes ds-body-text--short-lg from './base/base.css';
font-weight: var(--ds-font-weight-medium);
}

&[data-icon] {
Expand Down
1 change: 1 addition & 0 deletions packages/css/dropdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
justify-content: start;
padding: var(--dsc-dropdown-item-padding);
width: 100%;
font-weight: var(--ds-font-weight-regular);
}

.ds-dropdown__list {
Expand Down

0 comments on commit 220c105

Please sign in to comment.