Skip to content

Commit

Permalink
[Paper] framer fix and others comments
Browse files Browse the repository at this point in the history
  • Loading branch information
povilass committed Jan 13, 2021
1 parent adc9225 commit 4546392
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions framer/scripts/framerConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export const componentSettings = {
},
Paper: {
ignoredProps: [
'sx',
// FIXME: `Union`
'variant',
],
Expand Down
8 changes: 4 additions & 4 deletions packages/material-ui/src/Paper/Paper.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ export interface PaperProps extends StandardProps<React.HTMLAttributes<HTMLDivEl
* @default false
*/
square?: boolean;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
/**
* The variant to use.
* @default 'elevation'
*/
variant?: OverridableStringUnion<PaperVariantDefaults, PaperPropsVariantOverrides>;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
}

export type PaperClassKey = keyof NonNullable<PaperProps['classes']>;
Expand Down
1 change: 1 addition & 0 deletions packages/material-ui/src/Paper/Paper.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe('<Paper />', () => {
refInstanceof: window.HTMLDivElement,
testComponentPropWith: 'header',
testVariantProps: { variant: 'rounded' },
testStateOverrides: { prop: 'elevation', value: 10, styleKey: 'elevation10' },
skip: ['componentsProp'],
}));

Expand Down

0 comments on commit 4546392

Please sign in to comment.