Skip to content

Commit

Permalink
typographyFn -> typograpohyVariant
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Nov 10, 2020
1 parent dbf3a2b commit 06cdf07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/material-ui-system/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export function style<PropKey extends string, Theme extends object>(
): StyleFunction<{ [K in PropKey]?: unknown } & { theme: Theme }>;

// typography.js
export const typographyFn: SimpleStyleFunction<'typography'>;
export const typographyVariant: SimpleStyleFunction<'typography'>;
export const fontFamily: SimpleStyleFunction<'fontFamily'>;
export const fontSize: SimpleStyleFunction<'fontSize'>;
export const fontStyle: SimpleStyleFunction<'fontStyle'>;
Expand Down
4 changes: 2 additions & 2 deletions packages/material-ui-system/src/typography.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ export const textAlign = style({
prop: 'textAlign',
});

export const typographyFn = style({
export const typographyVariant = style({
prop: 'typography',
cssProperty: false,
themeKey: 'typography',
});

const typography = compose(
typographyFn,
typographyVariant,
fontFamily,
fontSize,
fontStyle,
Expand Down

0 comments on commit 06cdf07

Please sign in to comment.