Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

2.0 preview #113

Merged
merged 34 commits into from
May 13, 2017
Merged

2.0 preview #113

merged 34 commits into from
May 13, 2017

Conversation

valdrinkoshi
Copy link
Member

@valdrinkoshi valdrinkoshi commented Sep 19, 2016

Relevant updates:

  • use demo-snippet on demo page, add dev-dependency on web-animations-js as neon-animation doesn't anymore
  • make events composed in the unit tests
  • removed deprecated private property _focusTarget
  • explicitly set scroll listeners to be passive: false as in Canary touchstart, touchmove listeners treat the target as passive by default https://bugs.chromium.org/p/chromium/issues/detail?id=652519

@valdrinkoshi valdrinkoshi force-pushed the 2.0-preview branch 2 times, most recently from 57650d9 to 7764400 Compare October 4, 2016 22:46
@valdrinkoshi valdrinkoshi force-pushed the 2.0-preview branch 3 times, most recently from b7b7680 to 092aaf4 Compare December 9, 2016 02:12
@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that they're okay with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of the commit author(s) and merge this pull request when appropriate.

document.addEventListener('DOMMouseScroll', this._boundScrollHandler, {
capture: true,
passive: false
});
Copy link
Contributor

Choose a reason for hiding this comment

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

MDN claims IE and Edge don't support objects as the third argument to addEventListener; do these work as expected? Maybe they're coerced to booleans?

Copy link
Member Author

Choose a reason for hiding this comment

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

Exactly, I've added a note regarding this 👌

</div>
<iron-dropdown id="dropdown"
vertical-align="[[verticalAlign]]"
horizontal-align="[[horizontalAlign]]"
disabled="[[disabled]]"
open-animation-config="[[openAnimationConfig]]"
close-animation-config="[[closeAnimationConfig]]">
<content select=".dropdown-content"></content>
<slot></slot>
Copy link
Contributor

Choose a reason for hiding this comment

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

(Discussion in paper-menu-button for reference: https://github.com/PolymerElements/paper-menu-button/pull/105/files#r109993878)
I think we should convert this to a named slot like dropdown-trigger.

Copy link
Member Author

Choose a reason for hiding this comment

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

I saw this as an occasion to update iron-dropdown to be less selective, but since that could be seen as a breaking change (e.g. this example) it's probably best to keep that strict selectiveness via a named slot. Will update

Copy link
Member Author

Choose a reason for hiding this comment

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

done

overflow: hidden;
}
</style>

<div id="contentWrapper">
<content id="content" select=".dropdown-content"></content>
<slot id="content"></slot>
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be a named slot also.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@bicknellr bicknellr 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; I left a couple other minor comments.

README.md Outdated
@@ -20,7 +20,7 @@ _[Demo and API docs](https://elements.polymer-project.org/elements/iron-dropdown
##&lt;iron-dropdown&gt;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think a space after ## might make this render properly?

Copy link
Member Author

Choose a reason for hiding this comment

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

it doesn't :/

</iron-dropdown>

In the above example, the `<div>` with class `.dropdown-content` will be
In the above example, the `<div>` with slot `dropdown-content` will be
Copy link
Contributor

Choose a reason for hiding this comment

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

'with slot dropdown-content' -> 'assigned to the dropdown-content slot' ?

@valdrinkoshi valdrinkoshi merged commit cc411fe into master May 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants