Skip to content

Commit

Permalink
remove const
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Dec 24, 2021
1 parent 80c255d commit 8e07f31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/text-size.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { DASH, FONT, HEIGHT, LINE, REM, SIZE } from './constants/css-property-keyword';
import { REM } from './constants/css-property-keyword';
import { Style } from '@master/style';

export class TextSizeStyle extends Style {
static override prefixes = /^(t(ext)?:[0-9]((?!;).)*$)/;
override get props(): { [key: string]: any } {
return {
[FONT + DASH + SIZE]: this,
[LINE + DASH + HEIGHT]: {
'font-size': this,
'line-height': {
...this,
value: this.unit === REM
? this.value + .375 + this.unit
Expand Down

0 comments on commit 8e07f31

Please sign in to comment.