Skip to content

Commit

Permalink
modal-patch-mobile (#199)
Browse files Browse the repository at this point in the history
Remove container on body to fix older Chrome versions
  • Loading branch information
sikhote authored Jan 17, 2025
1 parent c93de21 commit e1b2fe8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/components/modal/examples/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<async-modal />
<br />
<long-modal />
<div class="spacer" />
</div>
</template>

Expand Down Expand Up @@ -113,4 +114,8 @@ export default {
min-height: 80vh; /* fixes a safari display bug */
}
}
.spacer {
height: 100vh;
}
</style>
2 changes: 1 addition & 1 deletion src/components/modal/styles/CdrModal.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $modal-animation-duration: 150ms;
}

inset: 0;
height: 100vh;
height: 100%;
overflow-y: scroll;
position: fixed;
visibility: visible;
Expand Down
1 change: 1 addition & 0 deletions src/dev/SinkWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export default {
align-items: center;
gap: 8px;
margin-bottom: 8px;
container-type: inline-size;
}
&__container {
Expand Down
2 changes: 0 additions & 2 deletions src/styles/cdr-reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ body {
/* cdr-color-background-primary */

background-color: #ffffff;
container-name: cdr-body;
container-type: inline-size;
}

h1,
Expand Down

0 comments on commit e1b2fe8

Please sign in to comment.