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

Lightbox controls should be actually hidden and not hidden by setting opacity to 0 #13042

Merged
merged 3 commits into from Jan 26, 2018

Conversation

cathyxz
Copy link
Contributor

@cathyxz cathyxz commented Jan 25, 2018

Partially addresses #12993.

Copy link
Contributor

@cvializ cvializ left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -934,7 +904,8 @@ export class AmpLightboxViewer extends AMP.BaseElement {
this.topBar_.classList.remove('fullscreen');
}
toggle(dev().assertElement(this.carousel_), true);
this.toggleDescriptionBox_(true);
this.updateDescriptionBox_();
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this.updatedesciptionBox_ need to be called when this.descriptionBox_ is toggled? It could be good defensive practice to create one method that calls both of them so no one risks forgetting to call this.updatedesciptionBox_ when toggling it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True. I'll bring that function back.

@cathyxz cathyxz merged commit 745615b into ampproject:master Jan 26, 2018
gzgogo pushed a commit to gzgogo/amphtml that referenced this pull request Jan 26, 2018
… opacity to 0 (ampproject#13042)

* Lightbox controls hidden should be actually hidden and not by opacity

* Refactor toggle description and update into a single function
@cathyxz cathyxz deleted the bugfix/lightbox-show-hide branch January 30, 2018 22:57
RanAbram pushed a commit to RanAbram/amphtml that referenced this pull request Mar 12, 2018
… opacity to 0 (ampproject#13042)

* Lightbox controls hidden should be actually hidden and not by opacity

* Refactor toggle description and update into a single function
protonate pushed a commit to protonate/amphtml that referenced this pull request Mar 15, 2018
… opacity to 0 (ampproject#13042)

* Lightbox controls hidden should be actually hidden and not by opacity

* Refactor toggle description and update into a single function
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

4 participants