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
Conversation
aria-labels on the 'back' and 'next' buttons of the carousel can now be changed instead of defaulting to 'next/previous item in carousel'
This reverts commit 91a75a9.
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.
I think you'll also need to declareExtensions()
in gulpfile.js to build the extension.
super(element); | ||
|
||
/** @private {string} */ | ||
this.myText_ = 'hello world'; |
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.
remove this. Add it back if used later
this.myText_ = 'hello world'; | ||
|
||
/** @private {!Element} */ | ||
this.container_ = this.win.document.createElement('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.
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> |
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.
Indicate that the component is under development.
|
||
/** @override */ | ||
isLayoutSupported(layout) { | ||
return layout == Layout.RESPONSIVE; |
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.
What's our conclusion here? Do we only support layout responsive? to @camelburrito @ericfs
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.
Was this actually intended for me? I don't think I'm familiar with the context here.
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.
ooops sorry, meant to cc @ericlindley-g on the layout format😄
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.
i think we will need to support everything except container .
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.
:) 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
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.
chatted with Alanna offline, yes all but container
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.
@alannawalton Let's add a TODO here. And add support to other layout in following PR.
Can someone give another look at this pull request please? |
@alannawalton Please fix the travis build failure. Try |
/** @override */ | ||
buildCallback() { | ||
this.container_ = this.win.document.createElement('div'); | ||
this.container_.textContent = this.myText_; |
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.
this.myText_
is undefined. Please remove this line.
@alannawalton Almost there. But travis is failing, please fix the test. |
🎉 🎉 🎉 |
All the files associated with this component. Implementation is in a different PR .