Skip to content

Commit

Permalink
refactor(v-deep): replace by :deep()
Browse files Browse the repository at this point in the history
  • Loading branch information
victorcg88 committed Jul 29, 2024
1 parent 4b57f19 commit 1daebdb
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@
});
</script>

<style lang="scss" scoped>
<style lang="scss">
$transition-duration: 0.25s;
.x-staggered-fade-and-slide {
z-index: 0;
&::v-deep .x-staggered-fade-and-slide {
&.x-staggered-fade-and-slide {
&--enter-active,
&--leave-active {
transition: $transition-duration ease-out;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,22 +218,23 @@
grid-column: max-width;
}
::v-deep .x-layout__aside {
&.x-modal {
// layout
z-index: 3;
flex-flow: row nowrap;
}
:deep(.x-layout__aside.x-modal) {
// layout
z-index: 3;
flex-flow: row nowrap;
}
:deep(.x-layout__aside--right.x-modal) {
justify-content: flex-end;
}
// others
// others
:deep(.x-layout__aside) {
pointer-events: none;
> *:not(.slot-helper) {
pointer-events: all;
}
&--right.x-modal {
justify-content: flex-end;
}
}
&__scroll-to-top {
Expand Down Expand Up @@ -271,7 +272,7 @@
}
}
::v-deep .x-layout__aside {
:deep(.x-layout__aside) {
.x-modal__content {
background-color: transparent;
height: 100%;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@
padding-block-end: var(--x-size-margin-bottom-layout-columns-scroll-to-top, 10px);
padding-inline-start: var(--x-size-margin-left-layout-columns-scroll-to-top, 10px);
::v-deep > * {
:deep(> *) {
pointer-events: all;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
grid-row: footer;
}
::v-deep .x-layout__aside {
:deep(.x-layout__aside) {
grid-row: page;
z-index: 3;
Expand All @@ -190,9 +190,9 @@
}
}
&__predictive ::v-deep,
&__floating ::v-deep,
.slot-helper ::v-deep {
&__predictive :deep(),
&__floating :deep(),
.slot-helper :deep() {
pointer-events: none;
> * {
Expand Down
2 changes: 1 addition & 1 deletion packages/x-components/src/views/home/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@
</script>

<style lang="scss" scoped>
.x-modal::v-deep .x-modal__content {
.x-modal :deep(.x-modal__content) {
overflow: hidden;
// Following is needed for closing the modal in base-events-modal.feature
width: calc(100% - 20px);
Expand Down

0 comments on commit 1daebdb

Please sign in to comment.