Skip to content

Commit

Permalink
sebastian review
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Apr 1, 2019
1 parent 9ac3f8f commit 8447637
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/demos/snackbars/ConsecutiveSnackbars.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ class ConsecutiveSnackbars extends React.Component {

return (
<div>
<Button onClick={this.handleClick('message a')}>Show message A</Button>
<Button onClick={this.handleClick('message b')}>Show message B</Button>
<Button onClick={this.handleClick('Message A')}>Show message A</Button>
<Button onClick={this.handleClick('Message B')}>Show message B</Button>
<Snackbar
key={messageInfo.key}
anchorOrigin={{
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/demos/snackbars/ConsecutiveSnackbars.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ class ConsecutiveSnackbars extends React.Component<Props, State> {

return (
<div>
<Button onClick={this.handleClick('message a')}>Show message A</Button>
<Button onClick={this.handleClick('message b')}>Show message B</Button>
<Button onClick={this.handleClick('Message A')}>Show message A</Button>
<Button onClick={this.handleClick('Message B')}>Show message B</Button>
<Snackbar
key={messageInfo.key}
anchorOrigin={{
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/demos/snackbars/snackbars.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Some snackbars with varying message length.

### Consecutive Snackbars

Per [Google's guidelines](https://material.io/design/components/snackbars.html#snackbars-toasts-usage), when a second snackbar is triggered while the first is displayed, the first should start the contraction motion downwards before the second one animates upwards.
When multiple snackbar updates are necessary, they should appear one at a time.

{{"demo": "pages/demos/snackbars/ConsecutiveSnackbars.js"}}

Expand Down

0 comments on commit 8447637

Please sign in to comment.