Skip to content

Commit

Permalink
Change globalCSS to stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy committed Dec 6, 2022
1 parent 45fce10 commit 8c3c59d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/HTMLTextStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class HTMLTextStyle extends TextStyle
private _overrides: string[] = [];

/** Global rules or stylesheet, useful for creating rules for rendering */
public globalCSS = '';
public stylesheet = '';

/**
* Convert a TextStyle to HTMLTextStyle
Expand Down Expand Up @@ -282,7 +282,7 @@ class HTMLTextStyle extends TextStyle
font-weight: ${font.weight};
font-style: ${font.style};
}`
), this.globalCSS);
), this.stylesheet);
}

/** Convert numerical colors into hex-strings */
Expand Down
2 changes: 1 addition & 1 deletion test/HTMLTextStyle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ describe('HTMLTextStyle', () =>
{
const style = new HTMLTextStyle();

style.globalCSS = `p { color: red; }`;
style.stylesheet = `p { color: red; }`;
expect(style.toGlobalCSS()).toMatchSnapshot();
});
});
Expand Down

0 comments on commit 8c3c59d

Please sign in to comment.