From b168504dc80b5e51f493685cd8cfebc9468d5707 Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Fri, 8 Mar 2024 17:34:05 +0100 Subject: chore(vue3): migrate ::v-deep to :deep Signed-off-by: Richard Steinmetz --- src/components/AppNavigation/RootNavigation.vue | 6 +++--- .../Settings/SettingsAddressbookSharee.vue | 2 +- .../AppNavigation/Settings/SettingsImportContacts.vue | 2 +- src/components/ContactDetails.vue | 17 ++++++++--------- src/components/ContactDetails/ContactDetailsAvatar.vue | 8 ++++---- src/components/DetailsHeader.vue | 4 ++-- src/components/EntityPicker/EntityBubble.vue | 2 +- src/components/EntityPicker/EntityPicker.vue | 4 ++-- src/components/EntityPicker/EntitySearchResult.vue | 4 ++-- src/components/EntityPicker/NewCircleIntro.vue | 4 ++-- src/components/MemberList.vue | 2 +- src/components/ProcessingScreen.vue | 9 --------- 12 files changed, 27 insertions(+), 37 deletions(-) diff --git a/src/components/AppNavigation/RootNavigation.vue b/src/components/AppNavigation/RootNavigation.vue index 232b9473..9f98dfb4 100644 --- a/src/components/AppNavigation/RootNavigation.vue +++ b/src/components/AppNavigation/RootNavigation.vue @@ -490,7 +490,7 @@ $caption-padding: 22px; #newcircle { margin-top: $caption-padding; - ::v-deep a { + :deep(a) { color: var(--color-text-maxcontrast) } } @@ -499,10 +499,10 @@ $caption-padding: 22px; margin: 0 $caption-padding; } -.app-navigation__collapse ::v-deep a { +.app-navigation__collapse :deep(a) { color: var(--color-text-maxcontrast) } -::v-deep .settings-button__label { +:deep(.settings-button__label) { opacity: .7; font-weight: bold; } diff --git a/src/components/AppNavigation/Settings/SettingsAddressbookSharee.vue b/src/components/AppNavigation/Settings/SettingsAddressbookSharee.vue index c77eca3e..3ab1bcdf 100644 --- a/src/components/AppNavigation/Settings/SettingsAddressbookSharee.vue +++ b/src/components/AppNavigation/Settings/SettingsAddressbookSharee.vue @@ -151,7 +151,7 @@ export default { text-overflow: ellipsis; width: 107px; } -::v-deep .button-vue--vue-secondary { +:deep(.button-vue--vue-secondary) { background-color: transparent; border: none; box-shadow: none; diff --git a/src/components/AppNavigation/Settings/SettingsImportContacts.vue b/src/components/AppNavigation/Settings/SettingsImportContacts.vue index b57f0f92..07fde312 100644 --- a/src/components/AppNavigation/Settings/SettingsImportContacts.vue +++ b/src/components/AppNavigation/Settings/SettingsImportContacts.vue @@ -337,7 +337,7 @@ export default { } &-disabled { // Wrap warning about disabled button instead of ellipsing it - ::v-deep .button-vue__text { + :deep(.button-vue__text) { white-space: pre-wrap; } } diff --git a/src/components/ContactDetails.vue b/src/components/ContactDetails.vue index 715a5ed5..414f039c 100644 --- a/src/components/ContactDetails.vue +++ b/src/components/ContactDetails.vue @@ -1092,7 +1092,7 @@ section.contact-details { } } #qrcode-modal { - ::v-deep .modal-container { + :deep(.modal-container) { display: flex; padding: 10px; background-color: #fff; @@ -1101,7 +1101,7 @@ section.contact-details { } } } -::v-deep .v-select.select { +:deep(.v-select.select) { min-width: 0; flex: 1 auto; .vs__actions { @@ -1109,7 +1109,7 @@ section.contact-details { } } #pick-addressbook-modal { - ::v-deep .modal-container { + :deep(.modal-container) { display: flex; overflow: visible; flex-wrap: wrap; @@ -1128,11 +1128,10 @@ section.contact-details { background-color: var(--color-primary-element-light); border-radius: var(--border-radius-rounded); } -::v-deep .button-vue--vue-tertiary:hover, -.button-vue--vue-tertiary:active { - background-color: var(--color-primary-element-light-hover) !important; - - } +:deep(.button-vue--vue-tertiary:hover), +:deep(.button-vue--vue-tertiary:active) { + background-color: var(--color-primary-element-light-hover) !important; +} .related-resources { display:inline-grid; margin-top: 88px; @@ -1153,7 +1152,7 @@ section.contact-details { display: inline-flex; } // forcing the size only for contacts app to fit the text size of the contacts app -::v-deep .related-resources__header h5 { +:deep(.related-resources__header h5) { font-size: medium; opacity: .7; color: var(--color-primary-element); diff --git a/src/components/ContactDetails/ContactDetailsAvatar.vue b/src/components/ContactDetails/ContactDetailsAvatar.vue index e7e30337..a519cf38 100644 --- a/src/components/ContactDetails/ContactDetailsAvatar.vue +++ b/src/components/ContactDetails/ContactDetailsAvatar.vue @@ -596,7 +596,7 @@ export default { justify-content: space-between; } - &::v-deep .cropper-view-box { + &:deep(.cropper-view-box) { border-radius: 50%; } } @@ -640,7 +640,7 @@ export default { justify-content: center; background-color: rgba(0, 0, 0, .2); // Always show max opacity, let the background-color be the visual cue - &::v-deep .action-item__menutoggle { + &:deep(.action-item__menutoggle) { opacity: 1; } } @@ -654,7 +654,7 @@ export default { width: 44px; height: 44px; margin: -50%; - &::v-deep { + &:deep { .action-item__menutoggle { opacity: .7; background-color: rgba(0, 0, 0, .2); @@ -675,7 +675,7 @@ export default { // Because of that, we now fill the modal-container, // so we need to watch for click on the photo-wrapper to // close on image click outside. - &::v-deep .modal-container { + &:deep(.modal-container) { background-color: transparent; box-shadow: none; diff --git a/src/components/DetailsHeader.vue b/src/components/DetailsHeader.vue index 31788e19..502e2a28 100644 --- a/src/components/DetailsHeader.vue +++ b/src/components/DetailsHeader.vue @@ -145,11 +145,11 @@ $top-padding: 50px; margin: 0; } - ::v-deep input { + :deep(input) { flex: 1 auto; } - &-title ::v-deep input { + &-title :deep(input) { font-weight: bold; } diff --git a/src/components/EntityPicker/EntityBubble.vue b/src/components/EntityPicker/EntityBubble.vue index 4864a86f..660a0be6 100644 --- a/src/components/EntityPicker/EntityBubble.vue +++ b/src/components/EntityPicker/EntityBubble.vue @@ -87,7 +87,7 @@ export default {