Skip to content

Commit

Permalink
Button v2 - Fix font family (#1734)
Browse files Browse the repository at this point in the history
* Add font inherit to NewButton

* Create tiny-cows-fold.md
  • Loading branch information
siddharthkp committed Dec 15, 2021
1 parent a6f6c74 commit bba4c24
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tiny-cows-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Button v2 - Fix font family
1 change: 1 addition & 0 deletions src/NewButton/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ export const getBaseStyles = (theme?: Theme) => ({
borderRadius: '2',
border: '1px solid',
borderColor: theme?.colors.btn.border,
fontFamily: 'inherit',
fontWeight: 'bold',
lineHeight: TEXT_ROW_HEIGHT,
whiteSpace: 'nowrap',
Expand Down
5 changes: 5 additions & 0 deletions src/__tests__/__snapshots__/NewButton.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ exports[`Button renders consistently 1`] = `
border-radius: 6px;
border: 1px solid;
border-color: rgba(27,31,36,0.15);
font-family: inherit;
font-weight: 600;
line-height: 20px;
white-space: nowrap;
Expand Down Expand Up @@ -92,6 +93,7 @@ exports[`Button styles danger button appropriately 1`] = `
.c0 {
border-radius: 2;
border: 1px solid;
font-family: inherit;
font-weight: bold;
line-height: 20px;
white-space: nowrap;
Expand Down Expand Up @@ -199,6 +201,7 @@ exports[`Button styles invisible button appropriately 1`] = `
.c0 {
border-radius: 2;
border: 0;
font-family: inherit;
font-weight: bold;
line-height: 20px;
white-space: nowrap;
Expand Down Expand Up @@ -286,6 +289,7 @@ exports[`Button styles outline button appropriately 1`] = `
.c0 {
border-radius: 2;
border: 1px solid;
font-family: inherit;
font-weight: bold;
line-height: 20px;
white-space: nowrap;
Expand Down Expand Up @@ -393,6 +397,7 @@ exports[`Button styles primary button appropriately 1`] = `
border-radius: 2;
border: 1px solid;
border-color: border.subtle;
font-family: inherit;
font-weight: bold;
line-height: 20px;
white-space: nowrap;
Expand Down

0 comments on commit bba4c24

Please sign in to comment.