Skip to content

Commit

Permalink
Add font-display to @font-face in makeStaticStyles type (#617)
Browse files Browse the repository at this point in the history
* Support font-display in @font-face in makeStaticStyles

* Change files

---------

Co-authored-by: Alina Zaieva <[email protected]>
  • Loading branch information
alina-zaieva and Alina Zaieva authored Oct 31, 2024
1 parent a84fcdf commit 00ba883
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "Support font-display in @font-face in makeStaticStyles",
"packageName": "@griffel/style-types",
"email": "[email protected]",
"dependentChangeType": "patch"
}
1 change: 1 addition & 0 deletions packages/style-types/src/makeStaticStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export type GriffelStaticStyle = {
fontFamily: string;
src: string;

fontDisplay?: string;
fontFeatureSettings?: string;
fontStretch?: string;
fontStyle?: string;
Expand Down

0 comments on commit 00ba883

Please sign in to comment.