Repository navigation
feat(toast): add support for closeButtonIcon - #16268
simonhaenisch wants to merge 7 commits into
Conversation
|
Could you resolve the conflicts with the branch? |
|
@paulstelzer just merged... could you please explain why the build failed? Does that mean I have to update the API docs somewhere or something? |
|
You have to commit the api.txt, too |
|
@paulstelzer ok, I used the Github interface to resolve the conflicts... that's why I missed that. Should be ok now? |
|
Thanks! I try to concince @manucorporat and @brandyscarney because the icon is not something that is in MD Design - but it's optional, so I hope it's get green light ;) |
|
Thanks for the PR! I think if this were to be implemented the API should match how action sheet and other overlays work, for example: Thoughts? |
|
@brandyscarney this kind of implies that it's possible to have multiple buttons, right? Other than that I like the idea. Edit: Multiple toast buttons is actually a thing, just had one in Gmail. It also had a close icon, which was circled when hovering (on desktop). The snackbar spec has not been updated yet though.
Should there also be a |
Hmmm yeah I would think so. But we may run into problems with passing I think it could go hand in hand with this issue: #16791 (comment) |
|
Closing in favor of #17147. |


Short description of what this resolves:
Adds the possibility to add an icon to the close button (either with or without a text).
Closes #16237.
Changes proposed in this pull request:
closeButtonIconprop to toastsIonic Version:
4.0.0-beta.16?I added demos to
test/basic/index.htmlandtest/preview/index.html, should I add them totest/standalone/index.htmlas well? Also, should I add new test cases to the e2e tests for that? Seems like only basic functionality of the toast, i. e., show and dismiss, is tested (maybe on purpose?).