-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🖍 Hide the system layer and progress bar in preview mode (#38163)
* Hide the system layer and progress bar in preview mode; unhide them once the visibility state progresses from PREVIEW to VISIBLE * Revert onVisibiiltyChanged logic added to the system layer and progress bar files * Use TOGGLE_SYSTEM_UI_IS_VISIBLE to hide the system UI and progress bar in preview mode * Lint * Use two ifs instead of if-else * Create isPreviewing() convenience method * Hide the system layer when the story loads into preview mode * Lint * Replace one of the new isPreviewing() calls because it results in a test failure * Set the SYSTEM_UI_IS_VISIBLE_STATE to false when loading in preview mode * Rename isPreviewing() to isVisible() * Dispatch TOGGLE_SYSTEM_UI_IS_VISIBLE action from amp-story instead of the amp-story-system-layer; change isHidden to isVisible
- Loading branch information
1 parent
77bc88a
commit 43d8797
Showing
3 changed files
with
121 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters