Skip to content

Commit 96d6d91

Browse files
committed
Enhance webflo elements
1 parent 625fd25 commit 96d6d91

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/webflo-runtime/webflo-client/webflo-elements.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,19 +1074,19 @@ export class ModalElement extends BaseElement {
10741074
10751075
/* ----------- swipe-dismiss ----------- */
10761076
1077-
:host(._swipe-dismiss:not(._horz)) {
1077+
:host(:not(._horz)) {
10781078
--swipe-dismiss-length: var(--modal-swipe-dismiss-length, calc(var(--view-height) - var(--minmax-length)));
10791079
}
10801080
1081-
:host(._swipe-dismiss._horz) {
1081+
:host(._horz) {
10821082
--swipe-dismiss-length: var(--modal-swipe-dismiss-length, calc(var(--view-width) - var(--minmax-length)));
10831083
}
10841084
1085-
:host(._swipe-dismiss:not(._top:not(._horz), ._left._horz)) {
1085+
:host(:not(._top:not(._horz), ._left._horz)) {
10861086
--swipe-dismiss-progress-range: 0% var(--swipe-dismiss-length);
10871087
}
10881088
1089-
:host(._swipe-dismiss:is(._top:not(._horz), ._left._horz)) {
1089+
:host(:is(._top:not(._horz), ._left._horz)) {
10901090
--swipe-dismiss-progress-range:
10911091
calc(100% - var(--swipe-dismiss-length))
10921092
100%;
@@ -1322,7 +1322,7 @@ export class ModalElement extends BaseElement {
13221322
--scroll-snap-end: start;
13231323
}
13241324
1325-
.view(:not(._horz)) {
1325+
:host(:not(._horz)) .view {
13261326
scroll-snap-type: y mandatory;
13271327
}
13281328

0 commit comments

Comments
 (0)