Skip to content

Commit

Permalink
Merge pull request #426 from hashicorp/badge-add-font-weight-declaration
Browse files Browse the repository at this point in the history
Badge component - Add font weight declaration
  • Loading branch information
didoo authored Jul 7, 2022
2 parents eb190d0 + ff236b2 commit d8585ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/mean-weeks-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hashicorp/design-system-components": patch
---

Updated font-weight to "medium" for "Badge" and "BadgeCount" components
1 change: 1 addition & 0 deletions packages/components/app/styles/components/badge-count.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ $hds-badge-count-border-width: 1px;
border: $hds-badge-count-border-width solid transparent;
display: inline-flex;
font-family: var(--token-typography-font-stack-text);
font-weight: var(--token-typography-font-weight-medium);
max-width: 100%;
}

Expand Down
1 change: 1 addition & 0 deletions packages/components/app/styles/components/badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
.hds-badge__text {
flex: 1 0 0;
font-family: var(--token-typography-font-stack-text);
font-weight: var(--token-typography-font-weight-medium);
}


Expand Down

2 comments on commit d8585ef

@vercel
Copy link

@vercel vercel bot commented on d8585ef Jul 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on d8585ef Jul 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.