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

Sidebar - Basic Open and close functionality #2795

Merged
merged 1 commit into from
Apr 5, 2016

Conversation

camelburrito
Copy link
Contributor

No description provided.

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@googlebot
Copy link

CLAs look good, thanks!

@@ -14,4 +14,48 @@
* limitations under the License.
*/

amp-sidebar {}
amp-sidebar {
position: fixed !important;
Copy link
Contributor

Choose a reason for hiding this comment

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

Didn't we decide to remove !important here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed on the top property

@dvoytenko
Copy link
Contributor

@sriramkrish85 Pretty much at LGTM with just a few comments.

@camelburrito camelburrito force-pushed the sidebar__prs_2 branch 2 times, most recently from 1c5b845 to b0a8769 Compare April 4, 2016 23:27
@camelburrito
Copy link
Contributor Author

PTAL

this.viewport_.disableTouchZoom();
this.mutateElement(() => {
this.viewport_.addToFixedLayer(this.element);
setStyles(this.element, {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use toggle from style.js. Here and everywhere where display is modified. Note that it doesn't set "block" - it only removes "none", which is actually the correct behavior in most of cases, but something to keep in mind.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in this case the sidebar needs to be block; since it is a custom element. we would need to make it block

@dvoytenko
Copy link
Contributor

LGTM with one group of fixes requested with toggle

@camelburrito camelburrito force-pushed the sidebar__prs_2 branch 3 times, most recently from 2d60b0a to 99634b1 Compare April 5, 2016 01:10
@camelburrito camelburrito merged commit efcfc87 into ampproject:master Apr 5, 2016
@camelburrito camelburrito deleted the sidebar__prs_2 branch April 5, 2016 01:35
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.

3 participants