Skip to content

Commit

Permalink
Make the initial value of the unit conversion to em
Browse files Browse the repository at this point in the history
  • Loading branch information
Karibash committed Oct 31, 2021
1 parent 1334ae0 commit b237028
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/real-starfishes-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medi-q/core": patch
---

Make the initial value of the unit conversion to em
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export * from './types';

export const createMediQ = (
breakPoints: BreakPoints,
unit: Extract<LengthUnitSuffix, 'px' | 'em' | 'rem'> = 'rem',
unit: Extract<LengthUnitSuffix, 'px' | 'em' | 'rem'> = 'em',
options?: Pick<ConvertLengthUnitArgsOptions, 'em' | 'rem'>,
): MediQ => {
const keys = Object.keys(breakPoints);
Expand Down

0 comments on commit b237028

Please sign in to comment.