-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
Updated paper-switch component #293
Updated paper-switch component #293
Conversation
@@ -84,12 +92,13 @@ export default BaseFocusable.extend(RippleMixin, ProxiableMixin, ColorMixin, { | |||
}, |
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.
Instead of using jquery's css()
and removeAttr()
functions on .md-thumb-container
, let's use a computed property that returns the style and bind it to the style attribute on the element like
<div class="md-thumb-container" style={{thumbContainerStyle}}>
<!-- inner elements -->
</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.
if you do that, you have to return a SafeString
from the computed and use triple curlies.
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.
Safestring yes, but you don't need triple curlies, unless you're printing any html? Please elaborate.
Example:
Thanks for the comments Miguel! I've done most of them, but I'm now dealing with issues that the changes created. I was honestly lost in your conversation with Chris (runinspired) so I don't know what to do with Hamme now. |
I made the changes but now the sliding is really unstable. Not sure of what's causing it. The tests pass because they don't test Hammer gestures. |
I'm stocked that jscs tests are passing here. You shouldn't be able to write |
I didn't know that. I actually rarely use |
JSCS tests are failing because of: https://github.com/DockYard/ember-suave/issues/106#issuecomment-187720996 If JSCS tests were working you could not use Besides this, there are other style errors in this PR. |
Thanks for the info. I'll definitely change it today. |
Please run |
I tried pulling wip/v1.0.0 and rebasing my branch to resolve conflicts but git says I'm up to date. |
Hi @miguelcobain, have you guys decided how we'd handle the hammer stuff? or should I try another component? |
HammerJS recognizes gestures. We use it to recognize the pan action to move the switch. |
I've finished the above stuff. Thanks. |
Sorry, thanks for fixing it. I totally messed up my repo trying to do the rebase, so I'd get some help from a friend by tomorrow. I'm glad it's merged now. |
Hi,
I'm opening this so you can start reviewing my changes. This is my first PR so I'd like to know if it's fine. I need help to test the Hammer.js behaviors on this component. I made some research on how to mock the gestures but still don't know what's the correct approach for the project.
Thanks,
Jorge L