material-ui: Updated width prop of drawer to be compliant with spec (#16342)

* material-ui: Updated width prop of drawer to be compliant with spec

* update header
This commit is contained in:
Daniel 2017-05-06 02:32:09 +10:00 committed by Mohamed Hegazy
parent ef8ff1dff4
commit b57178eb88
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
// Type definitions for material-ui v0.17.5
// Type definitions for material-ui v0.17.51
// Project: https://github.com/callemall/material-ui
// Definitions by: Nathan Brown <https://github.com/ngbrown>, Igor Belagorudsky <https://github.com/theigor>, Ali Taheri Moghaddar <https://github.com/alitaheri>, Oliver Herrmann <https://github.com/herrmanno>, Daniel Roth <https://github.com/DaIgeb>, Aurelién Allienne <https://github.com/allienna>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@ -1019,7 +1019,7 @@ declare namespace __MaterialUI {
overlayStyle?: React.CSSProperties;
style?: React.CSSProperties;
swipeAreaWidth?: number;
width?: number;
width?: number | string;
zDepth?: number;
}
export class Drawer extends React.Component<DrawerProps, {}> {

View File

@ -1662,7 +1662,7 @@ class DrawerOpenRightExample extends React.Component<{}, {open?: boolean}> {
label="Toggle Drawer"
onTouchTap={this.handleToggle}
/>
<Drawer width={200} openSecondary={true} open={this.state.open}>
<Drawer width="20%" openSecondary={true} open={this.state.open}>
<AppBar title="AppBar"/>
</Drawer>
</div>