Skip to content
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

Update avatar to Polaris v3.10.0 #286

Merged
merged 5 commits into from
Mar 20, 2019

Conversation

andrewpye
Copy link
Member

Updates polaris-avatar to match Polaris v3.10.0. I haven't added the new isServer functionality since we don't need it at this point. Also dropped the old tests in favour of porting the new ones added in polaris-react since we initially built polaris-avatar.

@andrewpye andrewpye self-assigned this Mar 20, 2019
@andrewpye
Copy link
Member Author

Copy link
Member

@vladucu vladucu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, one small comment only

class="Polaris-Avatar__Image"
src={{finalSource}}
alt=""
role="presentation"
onload={{action "handleLoad"}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just double-checking these are the right events here in Ember world

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I initially went with {{action "handleLoad" on="load"}} element modifiers and tried tinkering with that, but apparently that approach doesn't work here so this is what I landed on. The updated tests cover this functionality and with the exception of a timing issue in the tests for Ember 2.16/2.18, they pass without problem.

@andrewpye andrewpye merged commit debfea3 into update/polaris-v3.10.0 Mar 20, 2019
@delete-merged-branch delete-merged-branch bot deleted the update/avatar-v3.10.0 branch March 20, 2019 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants