-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add reversed prop to the Stack component (#2678)
* feat: add reverse prop to the stack component * fix: fix after code review * fix: add snapshot with reversed prop --------- Co-authored-by: Kyrylo Hudym-Levkovych <[email protected]>
- Loading branch information
Showing
5 changed files
with
66 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`<Stack /> correct rendering renders with the reversed prop 1`] = ` | ||
<div> | ||
<div | ||
class="pgn__vstack pgn__stack-reversed" | ||
> | ||
<div> | ||
Second | ||
</div> | ||
<div> | ||
First | ||
</div> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`<Stack /> correct rendering renders without props 1`] = ` | ||
<div | ||
className="pgn__vstack" | ||
> | ||
content | ||
<div> | ||
First | ||
</div> | ||
<div> | ||
Second | ||
</div> | ||
</div> | ||
`; |
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