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

Amp-compare-slider: Brand New Component Skeleton #10909

Merged
merged 9 commits into from Aug 17, 2017

Conversation

alannawalton
Copy link
Contributor

All the files associated with this component. Implementation is in a different PR .

aria-labels on the 'back' and 'next' buttons of the carousel can now be changed instead of defaulting to 'next/previous item in carousel'
Copy link
Contributor

@zhouyx zhouyx left a comment

Choose a reason for hiding this comment

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

I think you'll also need to declareExtensions() in gulpfile.js to build the extension.

super(element);

/** @private {string} */
this.myText_ = 'hello world';
Copy link
Contributor

Choose a reason for hiding this comment

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

remove this. Add it back if used later

this.myText_ = 'hello world';

/** @private {!Element} */
this.container_ = this.win.document.createElement('div');
Copy link
Contributor

Choose a reason for hiding this comment

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

Please delay document API until #buildCallback. Only initiate this.container_ in #constructor, and assign its value in #buildCallback

</tr>
<tr>
<td width="40%"><strong>Availability</strong></td>
<td>FILL THIS IN</td>
Copy link
Contributor

Choose a reason for hiding this comment

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

Indicate that the component is under development.


/** @override */
isLayoutSupported(layout) {
return layout == Layout.RESPONSIVE;
Copy link
Contributor

Choose a reason for hiding this comment

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

What's our conclusion here? Do we only support layout responsive? to @camelburrito @ericfs

Copy link

Choose a reason for hiding this comment

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

Was this actually intended for me? I don't think I'm familiar with the context here.

Copy link
Contributor

Choose a reason for hiding this comment

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

ooops sorry, meant to cc @ericlindley-g on the layout format😄

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 we will need to support everything except container .

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 we'd want to support all standard layout types (fill, fixed, fixed-height, flex-item, nodisplay, responsive), unless there's a reason not to. WDYT?

/cc @aghassemi for visibility

Copy link
Contributor

Choose a reason for hiding this comment

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

chatted with Alanna offline, yes all but container

Copy link
Contributor

Choose a reason for hiding this comment

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

@alannawalton Let's add a TODO here. And add support to other layout in following PR.

@alannawalton
Copy link
Contributor Author

alannawalton commented Aug 17, 2017

Can someone give another look at this pull request please?

@zhouyx
Copy link
Contributor

zhouyx commented Aug 17, 2017

@alannawalton Please fix the travis build failure. Try gulp lint locally. Otherwise we can't get the PR merged.

/** @override */
buildCallback() {
this.container_ = this.win.document.createElement('div');
this.container_.textContent = this.myText_;
Copy link
Contributor

Choose a reason for hiding this comment

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

this.myText_ is undefined. Please remove this line.

@zhouyx
Copy link
Contributor

zhouyx commented Aug 17, 2017

@alannawalton Almost there. But travis is failing, please fix the test.

@zhouyx
Copy link
Contributor

zhouyx commented Aug 17, 2017

🎉 🎉 🎉

@chenshay chenshay merged commit dacbc1d into ampproject:master Aug 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants