Skip to content

Commit

Permalink
modal-patch-mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
sikhote committed Jan 17, 2025
1 parent da5e6db commit be376bf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
9 changes: 9 additions & 0 deletions src/components/modal/examples/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
<br />
<long-modal />
<div class="spacer" />
<div class="sticky">Something sticky</div>
</div>
</template>

Expand Down Expand Up @@ -118,4 +119,12 @@ export default {
.spacer {
height: 100vh;
}
.sticky {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: red;
}
</style>
3 changes: 0 additions & 3 deletions src/components/modal/styles/CdrModal.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,4 @@ $modal-animation-duration: 150ms;
overflow: hidden !important;
position: fixed !important;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
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 be376bf

Please sign in to comment.