Skip to content

Commit

Permalink
fix(drawer): add contentWrapperStyle type declaration (#29571)
Browse files Browse the repository at this point in the history
* fix(drawer): add contentWrapperStyle type declaration

* chore: add test case
  • Loading branch information
kerm1it authored Mar 2, 2021
1 parent 2e5c848 commit 4e42971
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/drawer/__tests__/type.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ describe('Drawer.typescript', () => {
closable={false}
onClose={onClose}
visible={false}
contentWrapperStyle={{
background: '#f00',
}}
>
<p>Some contents...</p>
<p>Some contents...</p>
Expand Down
1 change: 1 addition & 0 deletions components/drawer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export interface DrawerProps {
drawerStyle?: React.CSSProperties;
headerStyle?: React.CSSProperties;
bodyStyle?: React.CSSProperties;
contentWrapperStyle?: React.CSSProperties;
title?: React.ReactNode;
visible?: boolean;
width?: number | string;
Expand Down

0 comments on commit 4e42971

Please sign in to comment.