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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃枍 Hide pagination arrows in story embedmode=1 and embedmode=3 #27463

Merged
merged 3 commits into from Mar 30, 2020

Conversation

newmuis
Copy link
Contributor

@newmuis newmuis commented Mar 27, 2020

No description provided.

Copy link
Contributor

@Enriqe Enriqe left a comment

Choose a reason for hiding this comment

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

I don't know if it's worth it, but we have comments in embed-mode.js that state what each embedMode does, might be worth updating those as well:

* - Hides bookend
* - Hides all system layer buttons
* - Disables swipe-based user education
* - Disallows ads
* - Unmutes audio in the story by default

@@ -565,6 +567,7 @@ export class AmpStoryStoreService {
[StateProperty.CAN_INSERT_AUTOMATIC_AD]: false,
[StateProperty.CAN_SHOW_BOOKEND]: false,
[StateProperty.CAN_SHOW_NAVIGATION_OVERLAY_HINT]: false,
[StateProperty.CAN_SHOW_PAGINATION_BUTTONS]: false,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a default that'd be true? (sorry, can't comment on the actual line where this would happen...) Otherwise the pagination buttons would never be visible

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops, done

@newmuis newmuis merged commit 04ef79c into ampproject:master Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants