Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 7adc12a

Browse files
author
Matt Goo
committed
fix(drawer): add missing foundation import in drawer (#821)
1 parent 7e0f877 commit 7adc12a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

packages/drawer/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ import {
2727
MDCModalDrawerFoundation,
2828
util,
2929
} from '@material/drawer';
30-
// @ts-ignore no .d.ts file
31-
import {MDCListFoundation} from '@material/list/dist/mdc.list';
30+
import {MDCListFoundation} from '@material/list/foundation';
3231
import DrawerHeader from './Header';
3332
import DrawerContent from './Content';
3433
import DrawerSubtitle from './Subtitle';

packages/drawer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"dependencies": {
2020
"@material/drawer": "^1.0.1",
21-
"@material/list": "^0.41.0",
21+
"@material/list": "^1.0.0",
2222
"classnames": "^2.2.6",
2323
"focus-trap": "^4.0.2",
2424
"react": "^16.4.2"

packages/list/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ export default class List extends React.Component<ListProps, ListState> {
216216
listItem.setAttribute(attr, value);
217217
}
218218
},
219+
// TODO: implement
220+
// https://github.com/material-components/material-components-web-react/issues/822
221+
getAttributeForElementIndex: () => '',
219222
/**
220223
* Pushes class name to state.listItemClassNames[listItemIndex] if it doesn't yet exist.
221224
*/

test/screenshot/golden.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"text-field/textArea": "b4c009f5f7637f7103380a2dd93bd6387d1ccc22d031323e6f0472949ce35881",
2828
"text-field/standard": "61cf0ebade2a09263d3a015c26cde28b3b3e67ab9d9bb4c494ac4823b9e8000b",
2929
"text-field/fullWidth": "26fa1e96054939384efb6427d93967bdbbc05ecc00bf7e4f13ab17cbe3e367fb",
30-
"text-field/outlined": "91e95a9bfb4e3f75ba9bb6a7ccf6a379b944d4960aaffd4ca2e4026a3f3daa71",
3130
"text-field/refTest": "742fe55ba0f3ca11c74beef5ea9737e2eaec37d9c8524552f3b06c6cb25f4157",
3231
"top-app-bar/fixed": "7a2dd6318d62ac2eabd66f1b28100db7c15840ccb753660065fa9524db6435d6",
3332
"top-app-bar/prominent": "2506ed2dd5f370c7bab69315d2daebd58b443d2b9e32bbaec762e40a8736309b",
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export default [
22
'standard',
33
'fullWidth',
4-
'outlined',
54
'textArea',
65
'refTest',
76
];

0 commit comments

Comments
 (0)