-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New: Expose thumbnails sidebar as preview option (#879)
- Loading branch information
Conrad Chan
authored and
Conrad Chan
committed
Feb 1, 2019
1 parent
c82e4d5
commit a686532
Showing
5 changed files
with
146 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Upgrading Guide | ||
========================= | ||
|
||
Upgrading from 1.x to 2.x | ||
------------------------- | ||
Version 2 includes a breaking change to the DOM structure of the Preview element. | ||
|
||
In version 1, the `.bp-navigate` buttons were siblings with the `.bp` container div | ||
``` | ||
<div class="bp" tabindex="0"> | ||
... | ||
</div> | ||
<button class="bp-btn-plain bp-navigate bp-navigate-left bp-is-hidden"> | ||
... | ||
</button> | ||
<button class="bp-btn-plain bp-navigate bp-navigate-right bp-is-hidden"> | ||
... | ||
</button> | ||
``` | ||
But in version 2, the buttons are now inside a new container div `.bp-content`. | ||
``` | ||
<div class="bp" tabindex="0"> | ||
<div class="bp-content"> | ||
<button class="bp-btn-plain bp-navigate bp-navigate-left bp-is-hidden"> | ||
... | ||
</button> | ||
<button class="bp-btn-plain bp-navigate bp-navigate-right bp-is-hidden"> | ||
... | ||
</button> | ||
</div> | ||
</div> | ||
``` | ||
|
||
`.bp-content` is also the new point in which the various viewers will be dynamically inserted as children, i.e. `.bp-doc`, `.bp-image`, etc... | ||
|
||
This change in structure is to account for the new thumbnails sidebar which will appear to the left of the viewer content. |
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
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