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

Commit

Permalink
docs: update menu/select styles and add snackbar to main readme (#927)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Goo authored Jun 13, 2019
1 parent 3321e8c commit b8c1a66
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Component | Spec | MDC Web
[Radio](./packages/radio) | [Radio Design Page](https://material.io/design/components/selection-controls.html#radio-buttons) | [MDC Radio](https://github.com/material-components/material-components-web/tree/master/packages/mdc-radio)
[Ripple](./packages/ripple) | [Ripple Design Page](https://material.io/design/interaction/states.html) | [MDC Ripple](https://github.com/material-components/material-components-web/tree/master/packages/mdc-ripple)
[Select](./packages/select) | [Select Design Page](https://material.io/design/components/menus.html#) | [MDC Select](https://github.com/material-components/material-components-web/tree/master/packages/mdc-select)
[Snackbar](./packages/snackbar) | [Snackbar Design Page](https://material.io/design/components/snackbars.html) | [MDC Snackbar](https://github.com/material-components/material-components-web/tree/master/packages/mdc-snackbar)
[Switch](./packages/switch) | [Switch Design Page](https://material.io/design/components/selection-controls.html#switches) | [MDC Switch](https://github.com/material-components/material-components-web/tree/master/packages/mdc-switch)
[Tab](./packages/tab) | [Tabs Design Page](https://material.io/design/components/tabs.html) | [MDC Tab](https://github.com/material-components/material-components-web/tree/master/packages/mdc-tab)
[Tab Bar](./packages/tab-bar) | [Tabs Design Page](https://material.io/design/components/tabs.html) | [MDC Tab Bar](https://github.com/material-components/material-components-web/tree/master/packages/mdc-tab-bar)
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"linear-progress",
"list",
"menu-surface",
"menu",
"notched-outline",
"radio",
"ripple",
Expand Down
4 changes: 4 additions & 0 deletions packages/menu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ npm install @material/react-menu

with Sass:
```js
import '@material/react-list/index.scss';
import '@material/react-menu-surface/index.scss';
import '@material/react-menu/index.scss';
```

with CSS:
```js
import '@material/react-list/dist/menu.css';
import '@material/react-menu-surface/dist/menu.css';
import '@material/react-menu/dist/menu.css';
```

Expand Down
8 changes: 7 additions & 1 deletion packages/select/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@ npm install @material/react-select

with Sass:
```js
import '@material/react-list/index.scss';
import '@material/react-menu-surface/index.scss';
import '@material/react-menu/index.scss';
import '@material/react-select/index.scss';
```

with CSS:
```js
import '@material/react-list/dist/menu.css';
import '@material/react-menu-surface/dist/menu.css';
import '@material/react-menu/dist/menu.css';
import '@material/react-select/dist/select.css';
```

Expand Down Expand Up @@ -62,7 +68,7 @@ class MyApp extends React.Component {
state = {value: 'pomsky'};

onEnhancedChange = (index, item) => (
this.setState({value: item.getAttribute('data-value')});
this.setState({value: item.getAttribute('data-value')})
);

render() {
Expand Down

0 comments on commit b8c1a66

Please sign in to comment.