-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dialog] Add support for the Alert #4022
Conversation
Nice! 👍 |
<RaisedButton label="Alert" onTouchTap={this.handleOpen} /> | ||
<Dialog | ||
actions={actions} | ||
modal={false} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be true
instead?
"requiring acknowledgement" says to me the user shouldn't just be able to click away or press Esc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. I have just tested the Calendar
google app on my Android phone.
It's behaving like modal={false}
.
However, Google isn't following the Material spec at 100% in all its applications. That behavior could be wrong.
Nice one. Although I'm surprised that we had to add "support" for this. Can't believe that it wasn't possible before! wow! |
It was supported but not documented. This PR broke it #4001. It was a good occasion to follow more closely the spec. |
@oliviertassinari Gotcha. Random thought: But it would be nice in the future if |
@nathanmarks I'm 💯 with you on the composability. |
tests/ docs demo, and is linted.Follow the specification: