-
Notifications
You must be signed in to change notification settings - Fork 0
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
TF-toasts component implementation #2
base: master
Are you sure you want to change the base?
Conversation
README.md
Outdated
**Template:** | ||
```hbs | ||
{{!-- Inline form --}} | ||
{{#tf-toast type='positive' message="Positive alert message." onClick=(action "myAction")}} |
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.
No #
in inline form.
README.md
Outdated
|
||
## Building | ||
<div class="c-toast u-toast-neutral">Neutral alert message.</div> |
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.
BEM syntax would be tf-toast
and tf-toast--neutral
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.
Thanks @ksin! Will update.
@@ -1,3 +1,2 @@ | |||
<h2 id="title">Welcome to Ember</h2> | |||
|
|||
{{#tf-toaster}}{{/tf-toaster}} |
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.
Since you're not yielding anything, it's probably fine to just make this inline {{tf-toaster}}
I think some more documentation and tests for the components and services will help. It's a little tricky to reason about how this is used right now. Correct me if I'm wrong: The consumer is expected to place I think this is viable way of implementing toasts. I like that you don't need to keep any state in the invoking controller/component and it's all action driven. I would not expose the I think @spencer516 had a different idea of how to implement toasts using ember-wormhole, so I'm curious what others think about this approach in comparison. |
@ksin Totally. I needed to add documentation and tests (started with some docs...) but then wanted to get feedback on this implementation first. And yes, you're right in how it's being used. We can chat about other ideas / ember-wormhole next week too. |
Let's also have a discussion as a group on what the expected data flow is for saving models / validations because that should directly effect how we implement this. |
80fe9a5
to
f450a34
Compare
@spencer516 @ksin @BrianSipple