diff --git a/packages/drawer/index.tsx b/packages/drawer/index.tsx index 5ea9ce4fb..876349153 100644 --- a/packages/drawer/index.tsx +++ b/packages/drawer/index.tsx @@ -27,8 +27,7 @@ import { MDCModalDrawerFoundation, util, } from '@material/drawer'; -// @ts-ignore no .d.ts file -import {MDCListFoundation} from '@material/list/dist/mdc.list'; +import {MDCListFoundation} from '@material/list/foundation'; import DrawerHeader from './Header'; import DrawerContent from './Content'; import DrawerSubtitle from './Subtitle'; diff --git a/packages/drawer/package.json b/packages/drawer/package.json index ca462a80a..8f5079364 100644 --- a/packages/drawer/package.json +++ b/packages/drawer/package.json @@ -18,7 +18,7 @@ }, "dependencies": { "@material/drawer": "^1.0.1", - "@material/list": "^0.41.0", + "@material/list": "^1.0.0", "classnames": "^2.2.6", "focus-trap": "^3.0.0", "react": "^16.4.2" diff --git a/packages/list/index.tsx b/packages/list/index.tsx index d1fc0e0b0..9f5f1d268 100644 --- a/packages/list/index.tsx +++ b/packages/list/index.tsx @@ -216,6 +216,9 @@ export default class List extends React.Component { listItem.setAttribute(attr, value); } }, + // TODO: implement + // https://github.com/material-components/material-components-web-react/issues/822 + getAttributeForElementIndex: () => '', /** * Pushes class name to state.listItemClassNames[listItemIndex] if it doesn't yet exist. */ diff --git a/test/screenshot/golden.json b/test/screenshot/golden.json index 7e905c010..e9140580f 100644 --- a/test/screenshot/golden.json +++ b/test/screenshot/golden.json @@ -27,7 +27,6 @@ "text-field/textArea": "b4c009f5f7637f7103380a2dd93bd6387d1ccc22d031323e6f0472949ce35881", "text-field/standard": "61cf0ebade2a09263d3a015c26cde28b3b3e67ab9d9bb4c494ac4823b9e8000b", "text-field/fullWidth": "26fa1e96054939384efb6427d93967bdbbc05ecc00bf7e4f13ab17cbe3e367fb", - "text-field/outlined": "91e95a9bfb4e3f75ba9bb6a7ccf6a379b944d4960aaffd4ca2e4026a3f3daa71", "text-field/refTest": "742fe55ba0f3ca11c74beef5ea9737e2eaec37d9c8524552f3b06c6cb25f4157", "top-app-bar/fixed": "7a2dd6318d62ac2eabd66f1b28100db7c15840ccb753660065fa9524db6435d6", "top-app-bar/prominent": "2506ed2dd5f370c7bab69315d2daebd58b443d2b9e32bbaec762e40a8736309b", diff --git a/test/screenshot/text-field/variants.tsx b/test/screenshot/text-field/variants.tsx index dbf0457ac..aaabf4033 100644 --- a/test/screenshot/text-field/variants.tsx +++ b/test/screenshot/text-field/variants.tsx @@ -1,7 +1,6 @@ export default [ 'standard', 'fullWidth', - 'outlined', 'textArea', 'refTest', ];