Skip to content

Commit

Permalink
Fix unsafe use of ::ng-deep (#3011)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nateowami authored Feb 14, 2025
1 parent 105a4f9 commit 56609f8
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,11 @@

// Section: Question list screen

::ng-deep .filter-text {
.filter-text {
padding: 0;

div {
// below is to make denser
::ng-deep div {
display: flex;
align-items: center;
mat-form-field:not(.mdc-text-field--textarea) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ mat-nav-list .mdc-list-item {
}
}

::ng-deep #sync-icon .mat-badge-content {
#sync-icon ::ng-deep .mat-badge-content {
font-family: 'Material Icons';
background: transparent;
color: variables.$errorColor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ mat-icon {
padding: 3px 0px;
}

::ng-deep .mat-mdc-checkbox .mdc-label {
:host ::ng-deep .mat-mdc-checkbox .mdc-label {
line-height: normal !important;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[value]="selectedRevision"
(selectionChange)="onSelectionChanged($event)"
panelWidth="''"
panelClass="history-select-panel"
[disabled]="isSelectDisabled$ | async"
hideSingleSelectionIndicator
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@use 'src/material-styles';

::ng-deep .mdc-list-item__primary-text {
::ng-deep .history-select-panel .mdc-list-item__primary-text {
width: 100%;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
width: 36px;
}

.app-avatar-container > button,
::ng-deep div.avatar-content {
.app-avatar-container > button {
height: 32px;
width: 32px;
}
Expand All @@ -24,10 +23,8 @@ app-avatar {
cursor: pointer;
}

.other-viewer ::ng-deep {
> span {
display: flex;
align-items: center;
column-gap: 4px;
}
.other-viewer ::ng-deep span {
display: flex;
align-items: center;
column-gap: 4px;
}

0 comments on commit 56609f8

Please sign in to comment.