forked from youzan/vant
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Popover): incorrect border position in wework (youzan#7702)
* fix(Popover): incorrect border position in wework * test(Popover): update snapshot
- Loading branch information
1 parent
d5ac316
commit ab45ef9
Showing
3 changed files
with
9 additions
and
11 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,30 +1,30 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`should allow to custom the className of action 1`] = ` | ||
<button type="button" class="van-popover__action foo"> | ||
<div role="menuitem" class="van-popover__action foo"> | ||
<div class="van-popover__action-text van-hairline--bottom">Option</div> | ||
</button> | ||
</div> | ||
`; | ||
|
||
exports[`should locate to reference element when showed 1`] = `<!---->`; | ||
|
||
exports[`should locate to reference element when showed 2`] = ` | ||
<div class="van-popup van-popover van-popover--light" name="van-popover-zoom" style="position: absolute; left: 0px; top: 8px; margin: 0px; z-index: 2007;" data-popper-placement="bottom"> | ||
<div class="van-popover__arrow"></div> | ||
<div class="van-popover__content"></div> | ||
<div role="menu" class="van-popover__content"></div> | ||
</div> | ||
`; | ||
|
||
exports[`should locate to reference element when showed 3`] = ` | ||
<div class="van-popup van-popover van-popover--light" name="van-popover-zoom" style="position: absolute; left: 0px; top: 8px; margin: 0px; z-index: 2007; display: none;" data-popper-placement="bottom"> | ||
<div class="van-popover__arrow"></div> | ||
<div class="van-popover__content"></div> | ||
<div role="menu" class="van-popover__content"></div> | ||
</div> | ||
`; | ||
|
||
exports[`should watch placement prop and update location 1`] = ` | ||
<div class="van-popup van-popover van-popover--light" name="van-popover-zoom" style="z-index: 2008; position: absolute; left: 0px; top: -8px; margin: 0px;" data-popper-placement="top"> | ||
<div class="van-popover__arrow"></div> | ||
<div class="van-popover__content"></div> | ||
<div role="menu" class="van-popover__content"></div> | ||
</div> | ||
`; |